#B251DB#B251DB

#B251DB is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.5% C 0.212 H 314.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#B251DB
RGBrgb(178, 81, 219)
HSLhsl(282, 66%, 59%)
HSVhsv(282, 63%, 86%)
CMYKcmyk(18.7%, 63%, 0%, 14.1%)
CIE-LABlab(52.36, 60.58, -54.06)
CIE-LCHlch(52.36, 81.20, 318.26°)
OKLaboklab(61.55% 0.1485 -0.1519)
OKLCHoklch(61.55% 0.212 314.4)
XYZxyz(34.0866, 20.4654, 69.1587)
Luminance0.2046 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B251DB #7ADB51
analogous
#6D51DB #B251DB #DB51BF
triadic
#B251DB #DBB251 #51DBB2
tetradic
#B251DB #DB6D51 #7ADB51 #51BFDB
square
#B251DB #DB6D51 #7ADB51 #51BFDB
split-complementary
#B251DB #BFDB51 #51DB6D
monochromatic
#701E93 #9729C6 #B251DB #C884E5 #DFB6F0

Accessibility & contrast

On white

4.12
#B251DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#B251DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B251DB
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B251DB#FFFFFF#000000##000000
##B251DB1.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1877DF
Deuteranopia (green-blind)
#4C7FD8
Tritanopia (blue-blind)
#AF6B8F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b251db;
/* rgb */ color: rgb(178, 81, 219);
/* oklch */ color: oklch(61.5% 0.212 314.4);
Tailwind
colors: {
  custom: {
    50: '#cd88e7',
    500: '#b251db',
    950: '#000000',
  },
}
SCSS
$custom: #b251db;
$custom-light: #cd88e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b251db",
  "rgb": {
    "r": 178,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 282.174,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.61549,
    "c": 0.21241,
    "h": 314.4
  },
  "luminance": 0.20464
}

Semantic roles & 50–950 ramp

primary
#B251DB
secondary
#B9DFA9
accent
#E93F72
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #B251DB

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

Preview Lab → · Contrast checker → · Palette generator →

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