#5E288A#5E288A

#5E288A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.156 H 305.7°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#5E288A
RGBrgb(94, 40, 138)
HSLhsl(273, 55%, 35%)
HSVhsv(273, 71%, 54%)
CMYKcmyk(31.9%, 71%, 0%, 45.9%)
CIE-LABlab(28.73, 42.95, -44.73)
CIE-LCHlch(28.73, 62.01, 313.84°)
OKLaboklab(40.45% 0.0912 -0.127)
OKLCHoklch(40.45% 0.156 305.7)
XYZxyz(9.9613, 5.7323, 24.6215)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E288A #548A28
analogous
#2D288A #5E288A #8A2885
triadic
#5E288A #8A5E28 #288A5E
tetradic
#5E288A #8A2D28 #548A28 #28858A
square
#5E288A #8A2D28 #548A28 #28858A
split-complementary
#5E288A #858A28 #288A2D
monochromatic
#1D0C2B #3E1A5B #5E288A #7E36B9 #9C5DD0

Accessibility & contrast

On white

9.78
#5E288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E288A
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E288A#FFFFFF#000000##FFFFFF
##5E288A1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#054488
Tritanopia (blue-blind)
#563E56
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e288a;
/* rgb */ color: rgb(94, 40, 138);
/* oklch */ color: oklch(40.5% 0.156 305.7);
Tailwind
colors: {
  custom: {
    50: '#9066ad',
    500: '#5e288a',
    950: '#000000',
  },
}
SCSS
$custom: #5e288a;
$custom-light: #9066ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e288a",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 273.061,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40454,
    "c": 0.15637,
    "h": 305.7
  },
  "luminance": 0.05732
}

Semantic roles & 50–950 ramp

primary
#5E288A
secondary
#82B559
accent
#DE498C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E288A

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

Preview Lab → · Contrast checker → · Palette generator →

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