#B251DC#B251DC

#B251DC is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.6% C 0.213 H 314.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#B251DC
RGBrgb(178, 81, 220)
HSLhsl(282, 67%, 59%)
HSVhsv(282, 63%, 86%)
CMYKcmyk(19.1%, 63.2%, 0%, 13.7%)
CIE-LABlab(52.42, 60.79, -54.53)
CIE-LCHlch(52.42, 81.66, 318.11°)
OKLaboklab(61.61% 0.1485 -0.1532)
OKLCHoklch(61.61% 0.213 314.1)
XYZxyz(34.2186, 20.5182, 69.8541)
Luminance0.2052 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B251DC #7BDC51
analogous
#6D51DC #B251DC #DC51C0
triadic
#B251DC #DCB251 #51DCB2
tetradic
#B251DC #DC6D51 #7BDC51 #51C0DC
square
#B251DC #DC6D51 #7BDC51 #51C0DC
split-complementary
#B251DC #C0DC51 #51DC6D
monochromatic
#711E95 #9728C8 #B251DC #C984E6 #DFB7F0

Accessibility & contrast

On white

4.11
#B251DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#B251DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B251DC
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B251DC#FFFFFF#000000##000000
##B251DC1.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1678E0
Deuteranopia (green-blind)
#4B7FD9
Tritanopia (blue-blind)
#AE6B8F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b251dc;
/* rgb */ color: rgb(178, 81, 220);
/* oklch */ color: oklch(61.6% 0.213 314.1);
Tailwind
colors: {
  custom: {
    50: '#cd88e7',
    500: '#b251dc',
    950: '#000000',
  },
}
SCSS
$custom: #b251dc;
$custom-light: #cd88e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b251dc",
  "rgb": {
    "r": 178,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 281.871,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.6161,
    "c": 0.21338,
    "h": 314.1
  },
  "luminance": 0.20517
}

Semantic roles & 50–950 ramp

primary
#B251DC
secondary
#BAE0A9
accent
#E93E72
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #B251DC

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

Preview Lab → · Contrast checker → · Palette generator →

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