#951EB4#951EB4

#951EB4 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.3% C 0.223 H 317.8°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#951EB4
RGBrgb(149, 30, 180)
HSLhsl(288, 71%, 41%)
HSVhsv(288, 83%, 71%)
CMYKcmyk(17.2%, 83.3%, 0%, 29.4%)
CIE-LABlab(38.92, 65.99, -53.29)
CIE-LCHlch(38.92, 84.82, 321.08°)
OKLaboklab(50.32% 0.1655 -0.1502)
OKLCHoklch(50.32% 0.223 317.8)
XYZxyz(21.0957, 10.6144, 44.1087)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#951EB4 #3DB41E
analogous
#4A1EB4 #951EB4 #B41E88
triadic
#951EB4 #B4951E #1EB495
tetradic
#951EB4 #B44A1E #3DB41E #1E88B4
square
#951EB4 #B44A1E #3DB41E #1E88B4
split-complementary
#951EB4 #88B41E #1EB44A
monochromatic
#3E0D4B #6A1580 #951EB4 #BA32DD #CB67E6

Accessibility & contrast

On white

6.73
#951EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#951EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #951EB4
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##951EB4#FFFFFF#000000##FFFFFF
##951EB41.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#245FB1
Tritanopia (blue-blind)
#94436C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #951eb4;
/* rgb */ color: rgb(149, 30, 180);
/* oklch */ color: oklch(50.3% 0.223 317.8);
Tailwind
colors: {
  custom: {
    50: '#b96bcb',
    500: '#951eb4',
    950: '#000000',
  },
}
SCSS
$custom: #951eb4;
$custom-light: #b96bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#951eb4",
  "rgb": {
    "r": 149,
    "g": 30,
    "b": 180
  },
  "hsl": {
    "h": 287.6,
    "s": 71.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.50322,
    "c": 0.22346,
    "h": 317.8
  },
  "luminance": 0.10613
}

Semantic roles & 50–950 ramp

primary
#951EB4
secondary
#78CB63
accent
#EE3A5F
background
#FBF6FC
surface
#F7ECF9
border
#D0C7D2
text
#120813
muted
#817A82

Preview Lab

Preview with #951EB4

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

Preview Lab → · Contrast checker → · Palette generator →

#951EB4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva