#5F2A96#5F2A96

#5F2A96 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.167 H 302.0°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#5F2A96
RGBrgb(95, 42, 150)
HSLhsl(269, 56%, 38%)
HSVhsv(269, 72%, 59%)
CMYKcmyk(36.7%, 72%, 0%, 41.2%)
CIE-LABlab(30.13, 45.18, -49.84)
CIE-LCHlch(30.13, 67.27, 312.19°)
OKLaboklab(41.78% 0.0886 -0.142)
OKLCHoklch(41.78% 0.167 302)
XYZxyz(11.0510, 6.2908, 29.4803)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2A96 #61962A
analogous
#2A2B96 #5F2A96 #952A96
triadic
#5F2A96 #965F2A #2A965F
tetradic
#5F2A96 #962A2B #61962A #2A9695
square
#5F2A96 #962A2B #61962A #2A9695
split-complementary
#5F2A96 #96952A #2B962A
monochromatic
#220F36 #411D66 #5F2A96 #7D37C6 #9C66D4

Accessibility & contrast

On white

9.30
#5F2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5F2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2A96
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2A96#FFFFFF#000000##FFFFFF
##5F2A961.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#004694
Tritanopia (blue-blind)
#53445D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f2a96;
/* rgb */ color: rgb(95, 42, 150);
/* oklch */ color: oklch(41.8% 0.167 302.0);
Tailwind
colors: {
  custom: {
    50: '#9168b6',
    500: '#5f2a96',
    950: '#000000',
  },
}
SCSS
$custom: #5f2a96;
$custom-light: #9168b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2a96",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 269.444,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41777,
    "c": 0.16737,
    "h": 302
  },
  "luminance": 0.06291
}

Semantic roles & 50–950 ramp

primary
#5F2A96
secondary
#8FBA61
accent
#E04895
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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