#951B7E#951B7E

#951B7E is a mid, vivid pink. Relative luminance 0.087; OKLCH L 46.7% C 0.185 H 337.4°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#951B7E
RGBrgb(149, 27, 126)
HSLhsl(311, 69%, 35%)
HSVhsv(311, 82%, 58%)
CMYKcmyk(0%, 81.9%, 15.4%, 41.6%)
CIE-LABlab(35.36, 57.83, -26.14)
CIE-LCHlch(35.36, 63.46, 335.67°)
OKLaboklab(46.75% 0.171 -0.0712)
OKLCHoklch(46.75% 0.185 337.4)
XYZxyz(16.5526, 8.6814, 20.5386)
Luminance0.0868 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#951B7E #1B9532
analogous
#6F1B95 #951B7E #951B41
triadic
#951B7E #7E951B #1B7E95
tetradic
#951B7E #956F1B #1B9532 #1B4195
square
#951B7E #956F1B #1B9532 #1B4195
split-complementary
#951B7E #41951B #1B956F
monochromatic
#2D0826 #611252 #951B7E #C924AA #DF4CC3

Accessibility & contrast

On white

7.68
#951B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#951B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #951B7E
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##951B7E#FFFFFF#000000##FFFFFF
##951B7E1.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204781
Deuteranopia (green-blind)
#4C5A7B
Tritanopia (blue-blind)
#9D244C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #951b7e;
/* rgb */ color: rgb(149, 27, 126);
/* oklch */ color: oklch(46.7% 0.185 337.4);
Tailwind
colors: {
  custom: {
    50: '#b868a3',
    500: '#951b7e',
    950: '#000000',
  },
}
SCSS
$custom: #951b7e;
$custom-light: #b868a3;
$custom-dark: #000000;
JSON
{
  "hex": "#951b7e",
  "rgb": {
    "r": 149,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 311.311,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46747,
    "c": 0.18519,
    "h": 337.4
  },
  "luminance": 0.0868
}

Semantic roles & 50–950 ramp

primary
#951B7E
secondary
#4BC161
accent
#EC5D3C
background
#FBF6FA
surface
#F7EBF4
border
#D0C6CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #951B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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