#5F2996#5F2996

#5F2996 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.169 H 302.1°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5F2996
RGBrgb(95, 41, 150)
HSLhsl(270, 57%, 37%)
HSVhsv(270, 73%, 59%)
CMYKcmyk(36.7%, 72.7%, 0%, 41.2%)
CIE-LABlab(29.96, 45.67, -50.12)
CIE-LCHlch(29.96, 67.81, 312.34°)
OKLaboklab(41.66% 0.0896 -0.1428)
OKLCHoklch(41.66% 0.169 302.1)
XYZxyz(11.0160, 6.2207, 29.4686)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2996 #609629
analogous
#292996 #5F2996 #962996
triadic
#5F2996 #965F29 #29965F
tetradic
#5F2996 #962929 #609629 #299696
square
#5F2996 #962929 #609629 #299696
split-complementary
#5F2996 #969629 #299629
monochromatic
#220F36 #411C66 #5F2996 #7D36C6 #9C65D5

Accessibility & contrast

On white

9.36
#5F2996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5F2996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2996
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2996#FFFFFF#000000##FFFFFF
##5F29961.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2996;
/* rgb */ color: rgb(95, 41, 150);
/* oklch */ color: oklch(41.7% 0.169 302.1);
Tailwind
colors: {
  custom: {
    50: '#9168b6',
    500: '#5f2996',
    950: '#000000',
  },
}
SCSS
$custom: #5f2996;
$custom-light: #9168b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2996",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 150
  },
  "hsl": {
    "h": 269.725,
    "s": 57.068,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41655,
    "c": 0.16861,
    "h": 302.1
  },
  "luminance": 0.06221
}

Semantic roles & 50–950 ramp

primary
#5F2996
secondary
#8EBB60
accent
#E04795
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2996

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

Preview Lab → · Contrast checker → · Palette generator →

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