#951F8B#951F8B

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

Color values

HEX#951F8B
RGBrgb(149, 31, 139)
HSLhsl(305, 66%, 35%)
HSVhsv(305, 79%, 58%)
CMYKcmyk(0%, 79.2%, 6.7%, 41.6%)
CIE-LABlab(36.43, 58.69, -32.52)
CIE-LCHlch(36.43, 67.09, 331.01°)
OKLaboklab(47.74% 0.1684 -0.0895)
OKLCHoklch(47.74% 0.191 332)
XYZxyz(17.5447, 9.2351, 25.2796)
Luminance0.0923 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#951F8B #1F9529
analogous
#641F95 #951F8B #951F50
triadic
#951F8B #8B951F #1F8B95
tetradic
#951F8B #95641F #1F9529 #1F5095
square
#951F8B #95641F #1F9529 #1F5095
split-complementary
#951F8B #50951F #1F9564
monochromatic
#300A2C #62145C #951F8B #C82ABA #DB53D0

Accessibility & contrast

On white

7.38
#951F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#951F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #951F8B
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##951F8B#FFFFFF#000000##FFFFFF
##951F8B1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154B8E
Deuteranopia (green-blind)
#475B88
Tritanopia (blue-blind)
#9C2E54
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #951f8b;
/* rgb */ color: rgb(149, 31, 139);
/* oklch */ color: oklch(47.7% 0.191 332.0);
Tailwind
colors: {
  custom: {
    50: '#b86aad',
    500: '#951f8b',
    950: '#000000',
  },
}
SCSS
$custom: #951f8b;
$custom-light: #b86aad;
$custom-dark: #000000;
JSON
{
  "hex": "#951f8b",
  "rgb": {
    "r": 149,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 305.085,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.47736,
    "c": 0.19073,
    "h": 332
  },
  "luminance": 0.09234
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #951F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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