#5F1588#5F1588

#5F1588 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.176 H 309.2°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#5F1588
RGBrgb(95, 21, 136)
HSLhsl(279, 73%, 31%)
HSVhsv(279, 85%, 53%)
CMYKcmyk(30.1%, 84.6%, 0%, 46.7%)
CIE-LABlab(26.00, 50.43, -47.90)
CIE-LCHlch(26.00, 69.56, 316.47°)
OKLaboklab(38.51% 0.1109 -0.1361)
OKLCHoklch(38.51% 0.176 309.2)
XYZxyz(9.4305, 4.7470, 23.7072)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1588 #3E8815
analogous
#261588 #5F1588 #881577
triadic
#5F1588 #885F15 #15885F
tetradic
#5F1588 #882615 #3E8815 #157788
square
#5F1588 #882615 #3E8815 #157788
split-complementary
#5F1588 #778815 #158826
monochromatic
#15051E #3A0D53 #5F1588 #841DBD #A437E0

Accessibility & contrast

On white

10.77
#5F1588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5F1588 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1588
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1588#FFFFFF#000000##FFFFFF
##5F15881.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#593450
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f1588;
/* rgb */ color: rgb(95, 21, 136);
/* oklch */ color: oklch(38.5% 0.176 309.2);
Tailwind
colors: {
  custom: {
    50: '#915eac',
    500: '#5f1588',
    950: '#000000',
  },
}
SCSS
$custom: #5f1588;
$custom-light: #915eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1588",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 136
  },
  "hsl": {
    "h": 278.609,
    "s": 73.248,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38513,
    "c": 0.17561,
    "h": 309.2
  },
  "luminance": 0.04747
}

Semantic roles & 50–950 ramp

primary
#5F1588
secondary
#6ABC3D
accent
#F03879
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1588

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

Preview Lab → · Contrast checker → · Palette generator →

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