#5E2E8A#5E2E8A

#5E2E8A is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.2% C 0.148 H 304.7°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5E2E8A
RGBrgb(94, 46, 138)
HSLhsl(271, 50%, 36%)
HSVhsv(271, 67%, 54%)
CMYKcmyk(31.9%, 66.7%, 0%, 45.9%)
CIE-LABlab(29.83, 39.89, -42.94)
CIE-LCHlch(29.83, 58.61, 312.89°)
OKLaboklab(41.25% 0.0842 -0.1218)
OKLCHoklch(41.25% 0.148 304.7)
XYZxyz(10.1795, 6.1687, 24.6942)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2E8A #5A8A2E
analogous
#302E8A #5E2E8A #8A2E88
triadic
#5E2E8A #8A5E2E #2E8A5E
tetradic
#5E2E8A #8A302E #5A8A2E #2E888A
square
#5E2E8A #8A302E #5A8A2E #2E888A
split-complementary
#5E2E8A #888A2E #2E8A30
monochromatic
#1F0F2E #3F1F5C #5E2E8A #7D3DB8 #9B66CC

Accessibility & contrast

On white

9.40
#5E2E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5E2E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2E8A
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2E8A#FFFFFF#000000##FFFFFF
##5E2E8A1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#134688
Tritanopia (blue-blind)
#564258
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e2e8a;
/* rgb */ color: rgb(94, 46, 138);
/* oklch */ color: oklch(41.2% 0.148 304.7);
Tailwind
colors: {
  custom: {
    50: '#8f6aad',
    500: '#5e2e8a',
    950: '#000000',
  },
}
SCSS
$custom: #5e2e8a;
$custom-light: #8f6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2e8a",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 271.304,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41248,
    "c": 0.14805,
    "h": 304.7
  },
  "luminance": 0.06169
}

Semantic roles & 50–950 ramp

primary
#5E2E8A
secondary
#88B361
accent
#DA4E91
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E2E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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