#5E287D#5E287D

#5E287D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.142 H 310.7°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#5E287D
RGBrgb(94, 40, 125)
HSLhsl(278, 52%, 32%)
HSVhsv(278, 68%, 49%)
CMYKcmyk(24.8%, 68%, 0%, 51%)
CIE-LABlab(27.79, 39.80, -38.12)
CIE-LCHlch(27.79, 55.11, 316.24°)
OKLaboklab(39.48% 0.0926 -0.1076)
OKLCHoklch(39.48% 0.142 310.7)
XYZxyz(9.0759, 5.3781, 19.9580)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E287D #477D28
analogous
#34287D #5E287D #7D2871
triadic
#5E287D #7D5E28 #287D5E
tetradic
#5E287D #7D3428 #477D28 #28717D
square
#5E287D #7D3428 #477D28 #28717D
split-complementary
#5E287D #717D28 #287D34
monochromatic
#180A20 #3B194F #5E287D #8137AB #9F56C9

Accessibility & contrast

On white

10.12
#5E287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5E287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E287D
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E287D#FFFFFF#000000##FFFFFF
##5E287D1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#1D437B
Tritanopia (blue-blind)
#5A394F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e287d;
/* rgb */ color: rgb(94, 40, 125);
/* oklch */ color: oklch(39.5% 0.142 310.7);
Tailwind
colors: {
  custom: {
    50: '#8f66a3',
    500: '#5e287d',
    950: '#000000',
  },
}
SCSS
$custom: #5e287d;
$custom-light: #8f66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e287d",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 278.118,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3948,
    "c": 0.14196,
    "h": 310.7
  },
  "luminance": 0.05378
}

Semantic roles & 50–950 ramp

primary
#5E287D
secondary
#74AE53
accent
#DB4D81
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5E287D

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

Preview Lab → · Contrast checker → · Palette generator →

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