#5E2D8E#5E2D8E

#5E2D8E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.154 H 303.5°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#5E2D8E
RGBrgb(94, 45, 142)
HSLhsl(270, 52%, 37%)
HSVhsv(270, 68%, 56%)
CMYKcmyk(33.8%, 68.3%, 0%, 44.3%)
CIE-LABlab(29.93, 41.43, -45.25)
CIE-LCHlch(29.93, 61.35, 312.47°)
OKLaboklab(41.41% 0.085 -0.1285)
OKLCHoklch(41.41% 0.154 303.5)
XYZxyz(10.4358, 6.2095, 26.2347)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2D8E #5D8E2D
analogous
#2D2D8E #5E2D8E #8E2D8E
triadic
#5E2D8E #8E5E2D #2D8E5E
tetradic
#5E2D8E #8E2D2D #5D8E2D #2D8E8E
square
#5E2D8E #8E2D2D #5D8E2D #2D8E8E
split-complementary
#5E2D8E #8E8E2D #2D8E2D
monochromatic
#201031 #3F1E60 #5E2D8E #7D3CBC #9B67CF

Accessibility & contrast

On white

9.37
#5E2D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5E2D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2D8E
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2D8E#FFFFFF#000000##FFFFFF
##5E2D8E1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#07468C
Tritanopia (blue-blind)
#554359
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e2d8e;
/* rgb */ color: rgb(94, 45, 142);
/* oklch */ color: oklch(41.4% 0.154 303.5);
Tailwind
colors: {
  custom: {
    50: '#9069b0',
    500: '#5e2d8e',
    950: '#000000',
  },
}
SCSS
$custom: #5e2d8e;
$custom-light: #9069b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2d8e",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 270.309,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41413,
    "c": 0.15412,
    "h": 303.5
  },
  "luminance": 0.06209
}

Semantic roles & 50–950 ramp

primary
#5E2D8E
secondary
#8BB561
accent
#DB4C93
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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