#5E288B#5E288B

#5E288B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.157 H 305.3°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#5E288B
RGBrgb(94, 40, 139)
HSLhsl(273, 55%, 35%)
HSVhsv(273, 71%, 55%)
CMYKcmyk(32.4%, 71.2%, 0%, 45.5%)
CIE-LABlab(28.80, 43.20, -45.23)
CIE-LCHlch(28.80, 62.54, 313.68°)
OKLaboklab(40.53% 0.0911 -0.1285)
OKLCHoklch(40.53% 0.157 305.3)
XYZxyz(10.0341, 5.7614, 25.0045)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E288B #558B28
analogous
#2C288B #5E288B #8B2887
triadic
#5E288B #8B5E28 #288B5E
tetradic
#5E288B #8B2C28 #558B28 #28878B
square
#5E288B #8B2C28 #558B28 #28878B
split-complementary
#5E288B #878B28 #288B2C
monochromatic
#1E0D2C #3E1A5B #5E288B #7E36BB #9C5DD0

Accessibility & contrast

On white

9.76
#5E288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5E288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E288B
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E288B#FFFFFF#000000##FFFFFF
##5E288B1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#024489
Tritanopia (blue-blind)
#563F56
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e288b;
/* rgb */ color: rgb(94, 40, 139);
/* oklch */ color: oklch(40.5% 0.157 305.3);
Tailwind
colors: {
  custom: {
    50: '#9067ae',
    500: '#5e288b',
    950: '#000000',
  },
}
SCSS
$custom: #5e288b;
$custom-light: #9067ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e288b",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 272.727,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40531,
    "c": 0.15748,
    "h": 305.3
  },
  "luminance": 0.05761
}

Semantic roles & 50–950 ramp

primary
#5E288B
secondary
#83B659
accent
#DF498D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E288B

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

Preview Lab → · Contrast checker → · Palette generator →

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