#951F97#951F97

#951F97 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.5% C 0.200 H 327.4°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#951F97
RGBrgb(149, 31, 151)
HSLhsl(299, 66%, 36%)
HSVhsv(299, 79%, 59%)
CMYKcmyk(1.3%, 79.5%, 0%, 40.8%)
CIE-LABlab(37.12, 60.63, -38.77)
CIE-LCHlch(37.12, 71.96, 327.40°)
OKLaboklab(48.45% 0.1682 -0.1077)
OKLCHoklch(48.45% 0.2 327.4)
XYZxyz(18.4701, 9.6053, 30.1533)
Luminance0.0960 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#951F97 #21971F
analogous
#591F97 #951F97 #971F5D
triadic
#951F97 #97951F #1F9795
tetradic
#951F97 #97591F #21971F #1F5D97
square
#951F97 #97591F #21971F #1F5D97
split-complementary
#951F97 #5D971F #1F9759
monochromatic
#310A31 #631564 #951F97 #C729CA #DA54DC

Accessibility & contrast

On white

7.19
#951F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#951F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #951F97
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##951F97#FFFFFF#000000##FFFFFF
##951F971.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#405C94
Tritanopia (blue-blind)
#9A345B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #951f97;
/* rgb */ color: rgb(149, 31, 151);
/* oklch */ color: oklch(48.5% 0.200 327.4);
Tailwind
colors: {
  custom: {
    50: '#b86ab6',
    500: '#951f97',
    950: '#000000',
  },
}
SCSS
$custom: #951f97;
$custom-light: #b86ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#951f97",
  "rgb": {
    "r": 149,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 299,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.48452,
    "c": 0.19975,
    "h": 327.4
  },
  "luminance": 0.09604
}

Semantic roles & 50–950 ramp

primary
#951F97
secondary
#54BF52
accent
#E93F42
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120711
muted
#817A80

Preview Lab

Preview with #951F97

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

Preview Lab → · Contrast checker → · Palette generator →

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