#5F2F96#5F2F96

#5F2F96 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.161 H 301.1°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#5F2F96
RGBrgb(95, 47, 150)
HSLhsl(268, 52%, 39%)
HSVhsv(268, 69%, 59%)
CMYKcmyk(36.7%, 68.7%, 0%, 41.2%)
CIE-LABlab(31.04, 42.67, -48.38)
CIE-LCHlch(31.04, 64.50, 311.41°)
OKLaboklab(42.42% 0.0832 -0.1377)
OKLCHoklch(42.42% 0.161 301.1)
XYZxyz(11.2395, 6.6679, 29.5431)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2F96 #66962F
analogous
#2F3296 #5F2F96 #922F96
triadic
#5F2F96 #965F2F #2F965F
tetradic
#5F2F96 #962F32 #66962F #2F9692
square
#5F2F96 #962F32 #66962F #2F9692
split-complementary
#5F2F96 #96922F #32962F
monochromatic
#241239 #412067 #5F2F96 #7D3FC3 #9C6ED2

Accessibility & contrast

On white

9.00
#5F2F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5F2F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2F96
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2F96#FFFFFF#000000##FFFFFF
##5F2F961.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#53475E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f2f96;
/* rgb */ color: rgb(95, 47, 150);
/* oklch */ color: oklch(42.4% 0.161 301.1);
Tailwind
colors: {
  custom: {
    50: '#916bb6',
    500: '#5f2f96',
    950: '#000000',
  },
}
SCSS
$custom: #5f2f96;
$custom-light: #916bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2f96",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 267.961,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42422,
    "c": 0.16087,
    "h": 301.1
  },
  "luminance": 0.06668
}

Semantic roles & 50–950 ramp

primary
#5F2F96
secondary
#93B968
accent
#DC4C99
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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