#5F2496#5F2496

#5F2496 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.175 H 302.8°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#5F2496
RGBrgb(95, 36, 150)
HSLhsl(271, 61%, 36%)
HSVhsv(271, 76%, 59%)
CMYKcmyk(36.7%, 76%, 0%, 41.2%)
CIE-LABlab(29.15, 47.97, -51.44)
CIE-LCHlch(29.15, 70.34, 313.00°)
OKLaboklab(41.08% 0.0946 -0.1467)
OKLCHoklch(41.08% 0.175 302.8)
XYZxyz(10.8539, 5.8966, 29.4146)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2496 #5B9624
analogous
#262496 #5F2496 #962494
triadic
#5F2496 #965F24 #24965F
tetradic
#5F2496 #962624 #5B9624 #249496
square
#5F2496 #962624 #5B9624 #249496
split-complementary
#5F2496 #949624 #249626
monochromatic
#200C33 #401865 #5F2496 #7E30C7 #9C5CD8

Accessibility & contrast

On white

9.64
#5F2496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5F2496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2496
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2496#FFFFFF#000000##FFFFFF
##5F24961.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#54415B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2496;
/* rgb */ color: rgb(95, 36, 150);
/* oklch */ color: oklch(41.1% 0.175 302.8);
Tailwind
colors: {
  custom: {
    50: '#9265b6',
    500: '#5f2496',
    950: '#000000',
  },
}
SCSS
$custom: #5f2496;
$custom-light: #9265b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2496",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 271.053,
    "s": 61.29,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4108,
    "c": 0.17452,
    "h": 302.8
  },
  "luminance": 0.05897
}

Semantic roles & 50–950 ramp

primary
#5F2496
secondary
#89BD59
accent
#E44391
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2496

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

Preview Lab → · Contrast checker → · Palette generator →

#5F2496 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva