#B27DFD

A color in the Violet family

#b27dfd is a color in the Violet family: RGB(178, 125, 253), HSL(265°, 97%, 74%), CMYK(30%, 51%, 0%, 1%). Closest named color: mediumpurple. Contrast is 2.9:1 on white and 7.24:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#b27dfd
RGBrgb(178 125 253)
RGB (legacy)rgb(178, 125, 253)
RGB %rgb(70% 49% 99%)
HSLhsl(265 97% 74%)
HSV / HSBhsv(265, 51%, 99%)
HWBhwb(265 49% 1%)
CMYKcmyk(30%, 51%, 0%, 1%)
CIELAB (D50)lab(62.14 40.3 -57.07)
LCHlch(62.14 69.86 305.23)
OKLaboklab(0.6974 0.095 -0.1592)
OKLCHoklch(0.6974 0.1854 300.82)
Decimal11697661

Properties

Color ToneViolet
Closest named colormediumpurple ΔE 7.7
Closest web-safe color#9966ff
Hue265°
Saturation (HSL / HSV)97% / 51%
Lightness (HSL)74%
Brightness or Value (HSV)99%
Luminance (Rec.601 / Rec.709)61% / 57%
Relative luminance (WCAG)0.3122
Red / Green / Blue178 / 125 / 253

WCAG 2.2 Contrast Ratio

On White (#ffffff)
2.90:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
7.24:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 55 / -46.8 · As background with white / black text: Lc -60.3 / 49

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #b27dfd;
  --color-brand-oklch: oklch(69.74% 0.1854 300.82);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(178 125 253 / 50%); }
/* Tailwind CSS */
<div class="bg-[#b27dfd] text-[#b27dfd] border-[#b27dfd]">