#5F2C96#5F2C96

#5F2C96 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.165 H 301.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#5F2C96
RGBrgb(95, 44, 150)
HSLhsl(269, 55%, 38%)
HSVhsv(269, 71%, 59%)
CMYKcmyk(36.7%, 70.7%, 0%, 41.2%)
CIE-LABlab(30.49, 44.20, -49.27)
CIE-LCHlch(30.49, 66.19, 311.89°)
OKLaboklab(42.03% 0.0865 -0.1403)
OKLCHoklch(42.03% 0.165 301.6)
XYZxyz(11.1237, 6.4362, 29.5045)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2C96 #63962C
analogous
#2C2E96 #5F2C96 #942C96
triadic
#5F2C96 #965F2C #2C965F
tetradic
#5F2C96 #962C2E #63962C #2C9694
square
#5F2C96 #962C2E #63962C #2C9694
split-complementary
#5F2C96 #96942C #2E962C
monochromatic
#231037 #411E67 #5F2C96 #7D3AC5 #9C69D3

Accessibility & contrast

On white

9.18
#5F2C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5F2C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2C96
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2C96#FFFFFF#000000##FFFFFF
##5F2C961.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#53455D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f2c96;
/* rgb */ color: rgb(95, 44, 150);
/* oklch */ color: oklch(42.0% 0.165 301.6);
Tailwind
colors: {
  custom: {
    50: '#9169b6',
    500: '#5f2c96',
    950: '#000000',
  },
}
SCSS
$custom: #5f2c96;
$custom-light: #9169b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2c96",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 150
  },
  "hsl": {
    "h": 268.868,
    "s": 54.639,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42028,
    "c": 0.16482,
    "h": 301.6
  },
  "luminance": 0.06436
}

Semantic roles & 50–950 ramp

primary
#5F2C96
secondary
#91BA64
accent
#DE4A97
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2C96

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

Preview Lab → · Contrast checker → · Palette generator →

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