#951F8A#951F8A

#951F8A is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.7% C 0.190 H 332.4°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#951F8A
RGBrgb(149, 31, 138)
HSLhsl(306, 66%, 35%)
HSVhsv(306, 79%, 58%)
CMYKcmyk(0%, 79.2%, 7.4%, 41.6%)
CIE-LABlab(36.38, 58.53, -31.99)
CIE-LCHlch(36.38, 66.70, 331.34°)
OKLaboklab(47.68% 0.1684 -0.088)
OKLCHoklch(47.68% 0.19 332.4)
XYZxyz(17.4719, 9.2060, 24.8966)
Luminance0.0921 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#951F8A #1F952A
analogous
#651F95 #951F8A #951F4F
triadic
#951F8A #8A951F #1F8A95
tetradic
#951F8A #95651F #1F952A #1F4F95
square
#951F8A #95651F #1F952A #1F4F95
split-complementary
#951F8A #4F951F #1F9565
monochromatic
#300A2C #62145B #951F8A #C82AB9 #DB53CF

Accessibility & contrast

On white

7.39
#951F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#951F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #951F8A
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##951F8A#FFFFFF#000000##FFFFFF
##951F8A1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164B8D
Deuteranopia (green-blind)
#485B87
Tritanopia (blue-blind)
#9C2D54
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #951f8a;
/* rgb */ color: rgb(149, 31, 138);
/* oklch */ color: oklch(47.7% 0.190 332.4);
Tailwind
colors: {
  custom: {
    50: '#b86aac',
    500: '#951f8a',
    950: '#000000',
  },
}
SCSS
$custom: #951f8a;
$custom-light: #b86aac;
$custom-dark: #000000;
JSON
{
  "hex": "#951f8a",
  "rgb": {
    "r": 149,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 305.593,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.47679,
    "c": 0.19,
    "h": 332.4
  },
  "luminance": 0.09205
}

Semantic roles & 50–950 ramp

primary
#951F8A
secondary
#51BF5B
accent
#E94F3F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #951F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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