#5F2DB6#5F2DB6

#5F2DB6 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.9% C 0.200 H 293.2°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#5F2DB6
RGBrgb(95, 45, 182)
HSLhsl(262, 60%, 45%)
HSVhsv(262, 75%, 71%)
CMYKcmyk(47.8%, 75.3%, 0%, 28.6%)
CIE-LABlab(33.32, 52.09, -63.92)
CIE-LCHlch(33.32, 82.46, 309.17°)
OKLaboklab(44.86% 0.0787 -0.1834)
OKLCHoklch(44.86% 0.2 293.2)
XYZxyz(14.0989, 7.6866, 44.9877)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DB6 #84B62D
analogous
#2D40B6 #5F2DB6 #A42DB6
triadic
#5F2DB6 #B65F2D #2DB65F
tetradic
#5F2DB6 #B62D40 #84B62D #2DB6A4
square
#5F2DB6 #B62D40 #84B62D #2DB6A4
split-complementary
#5F2DB6 #B6A42D #40B62D
monochromatic
#2C1554 #452185 #5F2DB6 #7E4DD3 #A27EDF

Accessibility & contrast

On white

8.28
#5F2DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5F2DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DB6
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DB6#FFFFFF#000000##FFFFFF
##5F2DB61.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#004CB3
Tritanopia (blue-blind)
#445270
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f2db6;
/* rgb */ color: rgb(95, 45, 182);
/* oklch */ color: oklch(44.9% 0.200 293.2);
Tailwind
colors: {
  custom: {
    50: '#956bcd',
    500: '#5f2db6',
    950: '#000000',
  },
}
SCSS
$custom: #5f2db6;
$custom-light: #956bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2db6",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 261.898,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44861,
    "c": 0.19954,
    "h": 293.2
  },
  "luminance": 0.07687
}

Semantic roles & 50–950 ramp

primary
#5F2DB6
secondary
#AAC877
accent
#E344A9
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F2DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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