#5F2595#5F2595

#5F2595 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.172 H 303.0°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#5F2595
RGBrgb(95, 37, 149)
HSLhsl(271, 60%, 36%)
HSVhsv(271, 75%, 58%)
CMYKcmyk(36.2%, 75.2%, 0%, 41.6%)
CIE-LABlab(29.23, 47.27, -50.71)
CIE-LCHlch(29.23, 69.33, 312.99°)
OKLaboklab(41.11% 0.0939 -0.1445)
OKLCHoklch(41.11% 0.172 303)
XYZxyz(10.8044, 5.9260, 29.0026)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2595 #5B9525
analogous
#272595 #5F2595 #952593
triadic
#5F2595 #955F25 #25955F
tetradic
#5F2595 #952725 #5B9525 #259395
square
#5F2595 #952725 #5B9525 #259395
split-complementary
#5F2595 #939525 #259527
monochromatic
#200D33 #401964 #5F2595 #7E31C6 #9C5ED7

Accessibility & contrast

On white

9.61
#5F2595 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2595
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2595#FFFFFF#000000##FFFFFF
##5F25951.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004498
Deuteranopia (green-blind)
#004593
Tritanopia (blue-blind)
#54415B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2595;
/* rgb */ color: rgb(95, 37, 149);
/* oklch */ color: oklch(41.1% 0.172 303.0);
Tailwind
colors: {
  custom: {
    50: '#9265b5',
    500: '#5f2595',
    950: '#000000',
  },
}
SCSS
$custom: #5f2595;
$custom-light: #9265b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2595",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 149
  },
  "hsl": {
    "h": 271.071,
    "s": 60.215,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41107,
    "c": 0.17231,
    "h": 303
  },
  "luminance": 0.05926
}

Semantic roles & 50–950 ramp

primary
#5F2595
secondary
#89BC5A
accent
#E34491
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2595

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

Preview Lab → · Contrast checker → · Palette generator →

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