#5F2096#5F2096

#5F2096 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.179 H 303.3°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#5F2096
RGBrgb(95, 32, 150)
HSLhsl(272, 65%, 36%)
HSVhsv(272, 79%, 59%)
CMYKcmyk(36.7%, 78.7%, 0%, 41.2%)
CIE-LABlab(28.56, 49.66, -52.41)
CIE-LCHlch(28.56, 72.20, 313.46°)
OKLaboklab(40.67% 0.0982 -0.1495)
OKLCHoklch(40.67% 0.179 303.3)
XYZxyz(10.7396, 5.6679, 29.3765)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2096 #579620
analogous
#242096 #5F2096 #962092
triadic
#5F2096 #965F20 #20965F
tetradic
#5F2096 #962420 #579620 #209296
square
#5F2096 #962420 #579620 #209296
split-complementary
#5F2096 #929620 #209624
monochromatic
#1F0A31 #3F1564 #5F2096 #7F2BC8 #9D56DB

Accessibility & contrast

On white

9.84
#5F2096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5F2096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2096
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2096#FFFFFF#000000##FFFFFF
##5F20961.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#543F5A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f2096;
/* rgb */ color: rgb(95, 32, 150);
/* oklch */ color: oklch(40.7% 0.179 303.3);
Tailwind
colors: {
  custom: {
    50: '#9263b6',
    500: '#5f2096',
    950: '#000000',
  },
}
SCSS
$custom: #5f2096;
$custom-light: #9263b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2096",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 272.034,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40665,
    "c": 0.17884,
    "h": 303.3
  },
  "luminance": 0.05668
}

Semantic roles & 50–950 ramp

primary
#5F2096
secondary
#85BE53
accent
#E8408E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #5F2096

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

Preview Lab → · Contrast checker → · Palette generator →

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