#B251DF#B251DF

#B251DF is a mid, highly saturated purple. Relative luminance 0.207; OKLCH L 61.8% C 0.216 H 313.3°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#B251DF
RGBrgb(178, 81, 223)
HSLhsl(281, 69%, 60%)
HSVhsv(281, 64%, 87%)
CMYKcmyk(20.2%, 63.7%, 0%, 12.5%)
CIE-LABlab(52.60, 61.41, -55.95)
CIE-LCHlch(52.60, 83.07, 317.66°)
OKLaboklab(61.8% 0.1484 -0.1574)
OKLCHoklch(61.8% 0.216 313.3)
XYZxyz(34.6195, 20.6786, 71.9654)
Luminance0.2068 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B251DF #7EDF51
analogous
#6B51DF #B251DF #DF51C5
triadic
#B251DF #DFB251 #51DFB2
tetradic
#B251DF #DF6B51 #7EDF51 #51C5DF
square
#B251DF #DF6B51 #7EDF51 #51C5DF
split-complementary
#B251DF #C5DF51 #51DF6B
monochromatic
#721C99 #9826CD #B251DF #C985E9 #E0B8F2

Accessibility & contrast

On white

4.09
#B251DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#B251DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B251DF
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B251DF#FFFFFF#000000##000000
##B251DF1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0B78E3
Deuteranopia (green-blind)
#4980DC
Tritanopia (blue-blind)
#AE6C91
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b251df;
/* rgb */ color: rgb(178, 81, 223);
/* oklch */ color: oklch(61.8% 0.216 313.3);
Tailwind
colors: {
  custom: {
    50: '#cd88ea',
    500: '#b251df',
    950: '#000000',
  },
}
SCSS
$custom: #b251df;
$custom-light: #cd88ea;
$custom-dark: #000000;
JSON
{
  "hex": "#b251df",
  "rgb": {
    "r": 178,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 280.986,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.61795,
    "c": 0.21632,
    "h": 313.3
  },
  "luminance": 0.20678
}

Semantic roles & 50–950 ramp

primary
#B251DF
secondary
#BCE1AA
accent
#EC3C74
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #B251DF

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#B251DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva