#5E288E#5E288E

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

Color values

HEX#5E288E
RGBrgb(94, 40, 142)
HSLhsl(272, 56%, 36%)
HSVhsv(272, 72%, 56%)
CMYKcmyk(33.8%, 71.8%, 0%, 44.3%)
CIE-LABlab(29.03, 43.94, -46.72)
CIE-LCHlch(29.03, 64.13, 313.25°)
OKLaboklab(40.77% 0.0906 -0.1328)
OKLCHoklch(40.77% 0.161 304.3)
XYZxyz(10.2563, 5.8503, 26.1748)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E288E #588E28
analogous
#2B288E #5E288E #8E288B
triadic
#5E288E #8E5E28 #288E5E
tetradic
#5E288E #8E2B28 #588E28 #288B8E
square
#5E288E #8E2B28 #588E28 #288B8E
split-complementary
#5E288E #8B8E28 #288E2B
monochromatic
#1F0D2F #3E1B5E #5E288E #7E35BE #9C5FD2

Accessibility & contrast

On white

9.68
#5E288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5E288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E288E
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E288E#FFFFFF#000000##FFFFFF
##5E288E1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#554058
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e288e;
/* rgb */ color: rgb(94, 40, 142);
/* oklch */ color: oklch(40.8% 0.161 304.3);
Tailwind
colors: {
  custom: {
    50: '#9067b0',
    500: '#5e288e',
    950: '#000000',
  },
}
SCSS
$custom: #5e288e;
$custom-light: #9067b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e288e",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 271.765,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40767,
    "c": 0.1608,
    "h": 304.3
  },
  "luminance": 0.0585
}

Semantic roles & 50–950 ramp

primary
#5E288E
secondary
#86B75B
accent
#DF488F
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E288E

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

Preview Lab → · Contrast checker → · Palette generator →

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