#5F288E#5F288E

#5F288E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.161 H 304.9°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#5F288E
RGBrgb(95, 40, 142)
HSLhsl(272, 56%, 36%)
HSVhsv(272, 72%, 56%)
CMYKcmyk(33.1%, 71.8%, 0%, 44.3%)
CIE-LABlab(29.17, 44.15, -46.49)
CIE-LCHlch(29.17, 64.11, 313.52°)
OKLaboklab(40.89% 0.0921 -0.1321)
OKLCHoklch(40.89% 0.161 304.9)
XYZxyz(10.3595, 5.9035, 26.1797)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F288E #578E28
analogous
#2C288E #5F288E #8E288A
triadic
#5F288E #8E5F28 #288E5F
tetradic
#5F288E #8E2C28 #578E28 #288A8E
square
#5F288E #8E2C28 #578E28 #288A8E
split-complementary
#5F288E #8A8E28 #288E2C
monochromatic
#1F0D2F #3F1B5E #5F288E #7F35BE #9D5FD2

Accessibility & contrast

On white

9.63
#5F288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5F288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F288E
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F288E#FFFFFF#000000##FFFFFF
##5F288E1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#564058
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f288e;
/* rgb */ color: rgb(95, 40, 142);
/* oklch */ color: oklch(40.9% 0.161 304.9);
Tailwind
colors: {
  custom: {
    50: '#9167b0',
    500: '#5f288e',
    950: '#000000',
  },
}
SCSS
$custom: #5f288e;
$custom-light: #9167b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f288e",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 272.353,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40894,
    "c": 0.16104,
    "h": 304.9
  },
  "luminance": 0.05903
}

Semantic roles & 50–950 ramp

primary
#5F288E
secondary
#85B75B
accent
#DF488E
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F288E

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

Preview Lab → · Contrast checker → · Palette generator →

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