#951F8D#951F8D

#951F8D is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.9% C 0.192 H 331.2°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#951F8D
RGBrgb(149, 31, 141)
HSLhsl(304, 66%, 35%)
HSVhsv(304, 79%, 58%)
CMYKcmyk(0%, 79.2%, 5.4%, 41.6%)
CIE-LABlab(36.54, 59.00, -33.58)
CIE-LCHlch(36.54, 67.88, 330.36°)
OKLaboklab(47.85% 0.1684 -0.0926)
OKLCHoklch(47.85% 0.192 331.2)
XYZxyz(17.6921, 9.2941, 26.0563)
Luminance0.0929 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#951F8D #1F9527
analogous
#621F95 #951F8D #951F52
triadic
#951F8D #8D951F #1F8D95
tetradic
#951F8D #95621F #1F9527 #1F5295
square
#951F8D #95621F #1F9527 #1F5295
split-complementary
#951F8D #52951F #1F9562
monochromatic
#300A2D #62145D #951F8D #C82ABD #DB53D2

Accessibility & contrast

On white

7.35
#951F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#951F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #951F8D
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##951F8D#FFFFFF#000000##FFFFFF
##951F8D1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114C90
Deuteranopia (green-blind)
#465C8A
Tritanopia (blue-blind)
#9B2F55
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #951f8d;
/* rgb */ color: rgb(149, 31, 141);
/* oklch */ color: oklch(47.9% 0.192 331.2);
Tailwind
colors: {
  custom: {
    50: '#b86aaf',
    500: '#951f8d',
    950: '#000000',
  },
}
SCSS
$custom: #951f8d;
$custom-light: #b86aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#951f8d",
  "rgb": {
    "r": 149,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 304.068,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.47852,
    "c": 0.19221,
    "h": 331.2
  },
  "luminance": 0.09293
}

Semantic roles & 50–950 ramp

primary
#951F8D
secondary
#51BF59
accent
#E94B3F
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #951F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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