#B951EC#B951EC

#B951EC is a light, highly saturated purple. Relative luminance 0.223; OKLCH L 63.5% C 0.231 H 312.5°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#B951EC
RGBrgb(185, 81, 236)
HSLhsl(280, 80%, 62%)
HSVhsv(280, 66%, 93%)
CMYKcmyk(21.6%, 65.7%, 0%, 7.5%)
CIE-LABlab(54.30, 65.62, -60.48)
CIE-LCHlch(54.30, 89.24, 317.33°)
OKLaboklab(63.47% 0.1563 -0.1705)
OKLCHoklch(63.47% 0.231 312.5)
XYZxyz(38.0876, 22.2563, 81.6301)
Luminance0.2225 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B951EC #84EC51
analogous
#6C51EC #B951EC #EC51D2
triadic
#B951EC #ECB951 #51ECB9
tetradic
#B951EC #EC6C51 #84EC51 #51D2EC
square
#B951EC #EC6C51 #84EC51 #51D2EC
split-complementary
#B951EC #D2EC51 #51EC6C
monochromatic
#7C13AF #A31AE6 #B951EC #CF88F2 #E5BFF8

Accessibility & contrast

On white

3.85
#B951EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#B951EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B951EC
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B951EC#FFFFFF#000000##000000
##B951EC1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF1
Deuteranopia (green-blind)
#4484E8
Tritanopia (blue-blind)
#B37098
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b951ec;
/* rgb */ color: rgb(185, 81, 236);
/* oklch */ color: oklch(63.5% 0.231 312.5);
Tailwind
colors: {
  custom: {
    50: '#d289f3',
    500: '#b951ec',
    950: '#000000',
  },
}
SCSS
$custom: #b951ec;
$custom-light: #d289f3;
$custom-dark: #000000;
JSON
{
  "hex": "#b951ec",
  "rgb": {
    "r": 185,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 280.258,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.63465,
    "c": 0.23131,
    "h": 312.5
  },
  "luminance": 0.22255
}

Semantic roles & 50–950 ramp

primary
#B951EC
secondary
#C3E9B0
accent
#DD094F
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C17
muted
#837D85

Preview Lab

Preview with #B951EC

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

Preview Lab → · Contrast checker → · Palette generator →

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