#5E2D90#5E2D90

#5E2D90 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.156 H 302.8°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#5E2D90
RGBrgb(94, 45, 144)
HSLhsl(270, 52%, 37%)
HSVhsv(270, 69%, 56%)
CMYKcmyk(34.7%, 68.7%, 0%, 43.5%)
CIE-LABlab(30.08, 41.94, -46.25)
CIE-LCHlch(30.08, 62.43, 312.20°)
OKLaboklab(41.57% 0.0848 -0.1315)
OKLCHoklch(41.57% 0.156 302.8)
XYZxyz(10.5873, 6.2701, 27.0326)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2D90 #5F902D
analogous
#2D2E90 #5E2D90 #902D90
triadic
#5E2D90 #905E2D #2D905E
tetradic
#5E2D90 #902D2E #5F902D #2D9090
square
#5E2D90 #902D2E #5F902D #2D9090
split-complementary
#5E2D90 #90902D #2E902D
monochromatic
#211033 #401E61 #5E2D90 #7C3CBF #9B68D0

Accessibility & contrast

On white

9.32
#5E2D90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5E2D90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2D90
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2D90#FFFFFF#000000##FFFFFF
##5E2D901.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004693
Deuteranopia (green-blind)
#00478E
Tritanopia (blue-blind)
#54435B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e2d90;
/* rgb */ color: rgb(94, 45, 144);
/* oklch */ color: oklch(41.6% 0.156 302.8);
Tailwind
colors: {
  custom: {
    50: '#906ab1',
    500: '#5e2d90',
    950: '#000000',
  },
}
SCSS
$custom: #5e2d90;
$custom-light: #906ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2d90",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 144
  },
  "hsl": {
    "h": 269.697,
    "s": 52.381,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41567,
    "c": 0.15643,
    "h": 302.8
  },
  "luminance": 0.0627
}

Semantic roles & 50–950 ramp

primary
#5E2D90
secondary
#8DB662
accent
#DC4C95
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E2D90

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

Preview Lab → · Contrast checker → · Palette generator →

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