#5E2A8D#5E2A8D

#5E2A8D is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.157 H 304.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5E2A8D
RGBrgb(94, 42, 141)
HSLhsl(272, 54%, 36%)
HSVhsv(272, 70%, 55%)
CMYKcmyk(33.3%, 70.2%, 0%, 44.7%)
CIE-LABlab(29.31, 42.71, -45.65)
CIE-LCHlch(29.31, 62.51, 313.09°)
OKLaboklab(40.94% 0.0886 -0.1297)
OKLCHoklch(40.94% 0.157 304.3)
XYZxyz(10.2507, 5.9587, 25.8043)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2A8D #598D2A
analogous
#2C2A8D #5E2A8D #8D2A8A
triadic
#5E2A8D #8D5E2A #2A8D5E
tetradic
#5E2A8D #8D2C2A #598D2A #2A8A8D
square
#5E2A8D #8D2C2A #598D2A #2A8A8D
split-complementary
#5E2A8D #8A8D2A #2A8D2C
monochromatic
#1F0E2F #3F1C5E #5E2A8D #7D38BC #9B61D0

Accessibility & contrast

On white

9.58
#5E2A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5E2A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2A8D
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2A8D#FFFFFF#000000##FFFFFF
##5E2A8D1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#01458B
Tritanopia (blue-blind)
#554158
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2a8d;
/* rgb */ color: rgb(94, 42, 141);
/* oklch */ color: oklch(40.9% 0.157 304.3);
Tailwind
colors: {
  custom: {
    50: '#9068af',
    500: '#5e2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #5e2a8d;
$custom-light: #9068af;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2a8d",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 271.515,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4094,
    "c": 0.15706,
    "h": 304.3
  },
  "luminance": 0.05959
}

Semantic roles & 50–950 ramp

primary
#5E2A8D
secondary
#87B65D
accent
#DD4A90
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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