#951F9C#951F9C

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

Color values

HEX#951F9C
RGBrgb(149, 31, 156)
HSLhsl(297, 67%, 37%)
HSVhsv(297, 80%, 61%)
CMYKcmyk(4.5%, 80.1%, 0%, 38.8%)
CIE-LABlab(37.43, 61.47, -41.32)
CIE-LCHlch(37.43, 74.06, 326.09°)
OKLaboklab(48.77% 0.1679 -0.1151)
OKLCHoklch(48.77% 0.204 325.6)
XYZxyz(18.8847, 9.7711, 32.3374)
Luminance0.0977 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#951F9C #269C1F
analogous
#571F9C #951F9C #9C1F65
triadic
#951F9C #9C951F #1F9C95
tetradic
#951F9C #9C571F #269C1F #1F659C
square
#951F9C #9C571F #269C1F #1F659C
split-complementary
#951F9C #659C1F #1F9C57
monochromatic
#330B36 #641569 #951F9C #C629CF #D658DE

Accessibility & contrast

On white

7.11
#951F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#951F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #951F9C
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##951F9C#FFFFFF#000000##FFFFFF
##951F9C1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9F
Deuteranopia (green-blind)
#3D5D99
Tritanopia (blue-blind)
#99375E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #951f9c;
/* rgb */ color: rgb(149, 31, 156);
/* oklch */ color: oklch(48.8% 0.204 325.6);
Tailwind
colors: {
  custom: {
    50: '#b86aba',
    500: '#951f9c',
    950: '#000000',
  },
}
SCSS
$custom: #951f9c;
$custom-light: #b86aba;
$custom-dark: #000000;
JSON
{
  "hex": "#951f9c",
  "rgb": {
    "r": 149,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 296.64,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.48765,
    "c": 0.20361,
    "h": 325.6
  },
  "luminance": 0.0977
}

Semantic roles & 50–950 ramp

primary
#951F9C
secondary
#5BC155
accent
#EA3E48
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120711
muted
#817A80

Preview Lab

Preview with #951F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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