#5E2D8A#5E2D8A

#5E2D8A is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.149 H 304.9°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5E2D8A
RGBrgb(94, 45, 138)
HSLhsl(272, 51%, 36%)
HSVhsv(272, 67%, 54%)
CMYKcmyk(31.9%, 67.4%, 0%, 45.9%)
CIE-LABlab(29.64, 40.41, -43.25)
CIE-LCHlch(29.64, 59.19, 313.06°)
OKLaboklab(41.11% 0.0854 -0.1227)
OKLCHoklch(41.11% 0.149 304.9)
XYZxyz(10.1409, 6.0915, 24.6814)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2D8A #598A2D
analogous
#2F2D8A #5E2D8A #8A2D87
triadic
#5E2D8A #8A5E2D #2D8A5E
tetradic
#5E2D8A #8A2F2D #598A2D #2D878A
square
#5E2D8A #8A2F2D #598A2D #2D878A
split-complementary
#5E2D8A #878A2D #2D8A2F
monochromatic
#1F0F2E #3F1E5C #5E2D8A #7D3CB8 #9B65CD

Accessibility & contrast

On white

9.47
#5E2D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5E2D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2D8A
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2D8A#FFFFFF#000000##FFFFFF
##5E2D8A1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e2d8a;
/* rgb */ color: rgb(94, 45, 138);
/* oklch */ color: oklch(41.1% 0.149 304.9);
Tailwind
colors: {
  custom: {
    50: '#8f69ad',
    500: '#5e2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #5e2d8a;
$custom-light: #8f69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2d8a",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 271.613,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4111,
    "c": 0.14949,
    "h": 304.9
  },
  "luminance": 0.06091
}

Semantic roles & 50–950 ramp

primary
#5E2D8A
secondary
#87B360
accent
#DA4D90
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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