#5E2A8A#5E2A8A

#5E2A8A is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.154 H 305.4°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#5E2A8A
RGBrgb(94, 42, 138)
HSLhsl(273, 53%, 35%)
HSVhsv(273, 70%, 54%)
CMYKcmyk(31.9%, 69.6%, 0%, 45.9%)
CIE-LABlab(29.08, 41.96, -44.15)
CIE-LCHlch(29.08, 60.91, 313.54°)
OKLaboklab(40.71% 0.089 -0.1253)
OKLCHoklch(40.71% 0.154 305.4)
XYZxyz(10.0305, 5.8707, 24.6446)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2A8A #568A2A
analogous
#2E2A8A #5E2A8A #8A2A86
triadic
#5E2A8A #8A5E2A #2A8A5E
tetradic
#5E2A8A #8A2E2A #568A2A #2A868A
square
#5E2A8A #8A2E2A #568A2A #2A868A
split-complementary
#5E2A8A #868A2A #2A8A2E
monochromatic
#1E0D2C #3E1C5B #5E2A8A #7E38B9 #9C60CF

Accessibility & contrast

On white

9.66
#5E2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2A8A
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2A8A#FFFFFF#000000##FFFFFF
##5E2A8A1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#0A4588
Tritanopia (blue-blind)
#563F56
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2a8a;
/* rgb */ color: rgb(94, 42, 138);
/* oklch */ color: oklch(40.7% 0.154 305.4);
Tailwind
colors: {
  custom: {
    50: '#9068ad',
    500: '#5e2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #5e2a8a;
$custom-light: #9068ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2a8a",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 272.5,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40709,
    "c": 0.15367,
    "h": 305.4
  },
  "luminance": 0.05871
}

Semantic roles & 50–950 ramp

primary
#5E2A8A
secondary
#84B45B
accent
#DD4B8E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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