#B251CD#B251CD

#B251CD is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.7% C 0.199 H 318.3°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#B251CD
RGBrgb(178, 81, 205)
HSLhsl(287, 55%, 56%)
HSVhsv(287, 60%, 80%)
CMYKcmyk(13.2%, 60.5%, 0%, 19.6%)
CIE-LABlab(51.56, 57.77, -47.35)
CIE-LCHlch(51.56, 74.70, 320.66°)
OKLaboklab(60.72% 0.1485 -0.1322)
OKLCHoklch(60.72% 0.199 318.3)
XYZxyz(32.3205, 19.7589, 59.8571)
Luminance0.1976 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B251CD #6CCD51
analogous
#7451CD #B251CD #CD51AA
triadic
#B251CD #CDB251 #51CDB2
tetradic
#B251CD #CD7451 #6CCD51 #51AACD
square
#B251CD #CD7451 #6CCD51 #51AACD
split-complementary
#B251CD #AACD51 #51CD74
monochromatic
#6B257F #9432AF #B251CD #C781DB #DCB0E8

Accessibility & contrast

On white

4.24
#B251CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#B251CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B251CD
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B251CD#FFFFFF#000000##000000
##B251CD1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3074D1
Deuteranopia (green-blind)
#577ECA
Tritanopia (blue-blind)
#B26688
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b251cd;
/* rgb */ color: rgb(178, 81, 205);
/* oklch */ color: oklch(60.7% 0.199 318.3);
Tailwind
colors: {
  custom: {
    50: '#cc87dd',
    500: '#b251cd',
    950: '#000000',
  },
}
SCSS
$custom: #b251cd;
$custom-light: #cc87dd;
$custom-dark: #000000;
JSON
{
  "hex": "#b251cd",
  "rgb": {
    "r": 178,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 286.935,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60715,
    "c": 0.19886,
    "h": 318.3
  },
  "luminance": 0.19758
}

Semantic roles & 50–950 ramp

primary
#B251CD
secondary
#AED7A3
accent
#DF496A
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #B251CD

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

Preview Lab → · Contrast checker → · Palette generator →

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