#951A8D#951A8D

#951A8D is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.5% C 0.197 H 331.2°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#951A8D
RGBrgb(149, 26, 141)
HSLhsl(304, 70%, 34%)
HSVhsv(304, 83%, 58%)
CMYKcmyk(0%, 82.6%, 5.4%, 41.6%)
CIE-LABlab(36.09, 60.33, -34.30)
CIE-LCHlch(36.09, 69.40, 330.38°)
OKLaboklab(47.53% 0.1723 -0.0947)
OKLCHoklch(47.53% 0.197 331.2)
XYZxyz(17.5715, 9.0529, 26.0161)
Luminance0.0905 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#951A8D #1A9522
analogous
#5F1A95 #951A8D #951A50
triadic
#951A8D #8D951A #1A8D95
tetradic
#951A8D #955F1A #1A9522 #1A5095
square
#951A8D #955F1A #1A9522 #1A5095
split-complementary
#951A8D #50951A #1A955F
monochromatic
#2D082A #61115C #951A8D #C923BE #DF4AD6

Accessibility & contrast

On white

7.47
#951A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#951A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #951A8D
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##951A8D#FFFFFF#000000##FFFFFF
##951A8D1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074A90
Deuteranopia (green-blind)
#445B8A
Tritanopia (blue-blind)
#9B2C54
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #951a8d;
/* rgb */ color: rgb(149, 26, 141);
/* oklch */ color: oklch(47.5% 0.197 331.2);
Tailwind
colors: {
  custom: {
    50: '#b868af',
    500: '#951a8d',
    950: '#000000',
  },
}
SCSS
$custom: #951a8d;
$custom-light: #b868af;
$custom-dark: #000000;
JSON
{
  "hex": "#951a8d",
  "rgb": {
    "r": 149,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 303.902,
    "s": 70.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.47525,
    "c": 0.19657,
    "h": 331.2
  },
  "luminance": 0.09051
}

Semantic roles & 50–950 ramp

primary
#951A8D
secondary
#4AC151
accent
#ED463B
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #951A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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