#5F2596#5F2596

#5F2596 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.173 H 302.7°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5F2596
RGBrgb(95, 37, 150)
HSLhsl(271, 60%, 37%)
HSVhsv(271, 75%, 59%)
CMYKcmyk(36.7%, 75.3%, 0%, 41.2%)
CIE-LABlab(29.31, 47.52, -51.19)
CIE-LCHlch(29.31, 69.85, 312.87°)
OKLaboklab(41.19% 0.0936 -0.1459)
OKLCHoklch(41.19% 0.173 302.7)
XYZxyz(10.8846, 5.9580, 29.4248)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2596 #5C9625
analogous
#262596 #5F2596 #962595
triadic
#5F2596 #965F25 #25965F
tetradic
#5F2596 #962625 #5C9625 #259596
square
#5F2596 #962625 #5C9625 #259596
split-complementary
#5F2596 #959625 #259626
monochromatic
#210D34 #401965 #5F2596 #7E31C7 #9C5ED7

Accessibility & contrast

On white

9.58
#5F2596 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5F2596 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2596
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2596#FFFFFF#000000##FFFFFF
##5F25961.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#54415C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2596;
/* rgb */ color: rgb(95, 37, 150);
/* oklch */ color: oklch(41.2% 0.173 302.7);
Tailwind
colors: {
  custom: {
    50: '#9266b6',
    500: '#5f2596',
    950: '#000000',
  },
}
SCSS
$custom: #5f2596;
$custom-light: #9266b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2596",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 150
  },
  "hsl": {
    "h": 270.796,
    "s": 60.428,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4119,
    "c": 0.17338,
    "h": 302.7
  },
  "luminance": 0.05958
}

Semantic roles & 50–950 ramp

primary
#5F2596
secondary
#8ABC5B
accent
#E44492
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2596

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

Preview Lab → · Contrast checker → · Palette generator →

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