#5E2C87#5E2C87

#5E2C87 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.147 H 306.1°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#5E2C87
RGBrgb(94, 44, 135)
HSLhsl(273, 51%, 35%)
HSVhsv(273, 67%, 53%)
CMYKcmyk(30.4%, 67.4%, 0%, 47.1%)
CIE-LABlab(29.24, 40.18, -42.04)
CIE-LCHlch(29.24, 58.16, 313.70°)
OKLaboklab(40.75% 0.0869 -0.1191)
OKLCHoklch(40.75% 0.147 306.1)
XYZxyz(9.8890, 5.9304, 23.5407)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2C87 #55872C
analogous
#302C87 #5E2C87 #872C82
triadic
#5E2C87 #875E2C #2C875E
tetradic
#5E2C87 #87302C #55872C #2C8287
square
#5E2C87 #87302C #55872C #2C8287
split-complementary
#5E2C87 #82872C #2C8730
monochromatic
#1E0E2B #3E1D59 #5E2C87 #7E3BB5 #9C62CC

Accessibility & contrast

On white

9.61
#5E2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5E2C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2C87
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2C87#FFFFFF#000000##FFFFFF
##5E2C871.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#154585
Tritanopia (blue-blind)
#573F55
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2c87;
/* rgb */ color: rgb(94, 44, 135);
/* oklch */ color: oklch(40.7% 0.147 306.1);
Tailwind
colors: {
  custom: {
    50: '#8f69ab',
    500: '#5e2c87',
    950: '#000000',
  },
}
SCSS
$custom: #5e2c87;
$custom-light: #8f69ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2c87",
  "rgb": {
    "r": 94,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 272.967,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40749,
    "c": 0.14745,
    "h": 306.1
  },
  "luminance": 0.0593
}

Semantic roles & 50–950 ramp

primary
#5E2C87
secondary
#83B25D
accent
#DA4D8D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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