#951FB4#951FB4

#951FB4 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.4% C 0.223 H 317.7°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#951FB4
RGBrgb(149, 31, 180)
HSLhsl(288, 71%, 41%)
HSVhsv(288, 83%, 71%)
CMYKcmyk(17.2%, 82.8%, 0%, 29.4%)
CIE-LABlab(39.01, 65.73, -53.15)
CIE-LCHlch(39.01, 84.53, 321.04°)
OKLaboklab(50.38% 0.1648 -0.1498)
OKLCHoklch(50.38% 0.223 317.7)
XYZxyz(21.1214, 10.6658, 44.1173)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#951FB4 #3EB41F
analogous
#4B1FB4 #951FB4 #B41F89
triadic
#951FB4 #B4951F #1FB495
tetradic
#951FB4 #B44B1F #3EB41F #1F89B4
square
#951FB4 #B44B1F #3EB41F #1F89B4
split-complementary
#951FB4 #89B41F #1FB44B
monochromatic
#3F0D4C #6A1680 #951FB4 #B934DC #CB68E5

Accessibility & contrast

On white

6.70
#951FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#951FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #951FB4
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##951FB4#FFFFFF#000000##FFFFFF
##951FB41.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#255FB1
Tritanopia (blue-blind)
#94436C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #951fb4;
/* rgb */ color: rgb(149, 31, 180);
/* oklch */ color: oklch(50.4% 0.223 317.7);
Tailwind
colors: {
  custom: {
    50: '#b96ccb',
    500: '#951fb4',
    950: '#000000',
  },
}
SCSS
$custom: #951fb4;
$custom-light: #b96ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#951fb4",
  "rgb": {
    "r": 149,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 287.517,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50384,
    "c": 0.22269,
    "h": 317.7
  },
  "luminance": 0.10665
}

Semantic roles & 50–950 ramp

primary
#951FB4
secondary
#79CB64
accent
#ED3A60
background
#FBF6FC
surface
#F7ECF9
border
#D0C7D2
text
#120813
muted
#817A82

Preview Lab

Preview with #951FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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