#5E2A94#5E2A94

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

Color values

HEX#5E2A94
RGBrgb(94, 42, 148)
HSLhsl(269, 56%, 37%)
HSVhsv(269, 72%, 58%)
CMYKcmyk(36.5%, 71.6%, 0%, 42%)
CIE-LABlab(29.85, 44.47, -49.09)
CIE-LCHlch(29.85, 66.24, 312.17°)
OKLaboklab(41.49% 0.0875 -0.1398)
OKLCHoklch(41.49% 0.165 302)
XYZxyz(10.7881, 6.1737, 28.6345)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2A94 #60942A
analogous
#2A2B94 #5E2A94 #932A94
triadic
#5E2A94 #945E2A #2A945E
tetradic
#5E2A94 #942A2B #60942A #2A9493
square
#5E2A94 #942A2B #60942A #2A9493
split-complementary
#5E2A94 #94932A #2B942A
monochromatic
#210F35 #401C64 #5E2A94 #7C38C4 #9B65D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E2A94#FFFFFF#000000##FFFFFF
##5E2A941.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)
#004697
Deuteranopia (green-blind)
#004692
Tritanopia (blue-blind)
#53435C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e2a94;
/* rgb */ color: rgb(94, 42, 148);
/* oklch */ color: oklch(41.5% 0.165 302.0);
Tailwind
colors: {
  custom: {
    50: '#9068b4',
    500: '#5e2a94',
    950: '#000000',
  },
}
SCSS
$custom: #5e2a94;
$custom-light: #9068b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2a94",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 269.434,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41494,
    "c": 0.16494,
    "h": 302
  },
  "luminance": 0.06174
}

Semantic roles & 50–950 ramp

primary
#5E2A94
secondary
#8EB960
accent
#DF4995
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2A94

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

Preview Lab → · Contrast checker → · Palette generator →

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