#951F9D#951F9D

#951F9D is a mid, highly saturated purple. Relative luminance 0.098; OKLCH L 48.8% C 0.204 H 325.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#951F9D
RGBrgb(149, 31, 157)
HSLhsl(296, 67%, 37%)
HSVhsv(296, 80%, 62%)
CMYKcmyk(5.1%, 80.3%, 0%, 38.4%)
CIE-LABlab(37.49, 61.64, -41.83)
CIE-LCHlch(37.49, 74.49, 325.84°)
OKLaboklab(48.83% 0.1679 -0.1166)
OKLCHoklch(48.83% 0.204 325.2)
XYZxyz(18.9698, 9.8051, 32.7852)
Luminance0.0980 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#951F9D #279D1F
analogous
#561F9D #951F9D #9D1F66
triadic
#951F9D #9D951F #1F9D95
tetradic
#951F9D #9D561F #279D1F #1F669D
square
#951F9D #9D561F #279D1F #1F669D
split-complementary
#951F9D #669D1F #1F9D56
monochromatic
#340B37 #64156A #951F9D #C629D0 #D658DE

Accessibility & contrast

On white

7.09
#951F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#951F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #951F9D
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##951F9D#FFFFFF#000000##FFFFFF
##951F9D1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA0
Deuteranopia (green-blind)
#3C5D9A
Tritanopia (blue-blind)
#98385F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #951f9d;
/* rgb */ color: rgb(149, 31, 157);
/* oklch */ color: oklch(48.8% 0.204 325.2);
Tailwind
colors: {
  custom: {
    50: '#b86aba',
    500: '#951f9d',
    950: '#000000',
  },
}
SCSS
$custom: #951f9d;
$custom-light: #b86aba;
$custom-dark: #000000;
JSON
{
  "hex": "#951f9d",
  "rgb": {
    "r": 149,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 296.19,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48829,
    "c": 0.20438,
    "h": 325.2
  },
  "luminance": 0.09804
}

Semantic roles & 50–950 ramp

primary
#951F9D
secondary
#5DC256
accent
#EA3E49
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120712
muted
#817A81

Preview Lab

Preview with #951F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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