#951F98#951F98

#951F98 is a mid, highly saturated purple. Relative luminance 0.096; OKLCH L 48.5% C 0.201 H 327.0°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#951F98
RGBrgb(149, 31, 152)
HSLhsl(299, 66%, 36%)
HSVhsv(299, 80%, 60%)
CMYKcmyk(2%, 79.6%, 0%, 40.4%)
CIE-LABlab(37.18, 60.79, -39.28)
CIE-LCHlch(37.18, 72.38, 327.13°)
OKLaboklab(48.51% 0.1682 -0.1092)
OKLCHoklch(48.51% 0.201 327)
XYZxyz(18.5516, 9.6379, 30.5829)
Luminance0.0964 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#951F98 #22981F
analogous
#581F98 #951F98 #981F5E
triadic
#951F98 #98951F #1F9895
tetradic
#951F98 #98581F #22981F #1F5E98
square
#951F98 #98581F #22981F #1F5E98
split-complementary
#951F98 #5E981F #1F9858
monochromatic
#310A32 #631565 #951F98 #C729CB #D955DC

Accessibility & contrast

On white

7.17
#951F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#951F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #951F98
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##951F98#FFFFFF#000000##FFFFFF
##951F981.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9B
Deuteranopia (green-blind)
#405D95
Tritanopia (blue-blind)
#99355C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #951f98;
/* rgb */ color: rgb(149, 31, 152);
/* oklch */ color: oklch(48.5% 0.201 327.0);
Tailwind
colors: {
  custom: {
    50: '#b86ab7',
    500: '#951f98',
    950: '#000000',
  },
}
SCSS
$custom: #951f98;
$custom-light: #b86ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#951f98",
  "rgb": {
    "r": 149,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 298.512,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.48514,
    "c": 0.20052,
    "h": 327
  },
  "luminance": 0.09637
}

Semantic roles & 50–950 ramp

primary
#951F98
secondary
#56C053
accent
#E93F43
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120711
muted
#817A80

Preview Lab

Preview with #951F98

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

Preview Lab → · Contrast checker → · Palette generator →

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