#5E2D87#5E2D87

#5E2D87 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.146 H 305.9°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#5E2D87
RGBrgb(94, 45, 135)
HSLhsl(273, 50%, 35%)
HSVhsv(273, 67%, 53%)
CMYKcmyk(30.4%, 66.7%, 0%, 47.1%)
CIE-LABlab(29.43, 39.66, -41.74)
CIE-LCHlch(29.43, 57.57, 313.54°)
OKLaboklab(40.89% 0.0857 -0.1182)
OKLCHoklch(40.89% 0.146 305.9)
XYZxyz(9.9267, 6.0058, 23.5533)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2D87 #56872D
analogous
#312D87 #5E2D87 #872D83
triadic
#5E2D87 #875E2D #2D875E
tetradic
#5E2D87 #87312D #56872D #2D8387
square
#5E2D87 #87312D #56872D #2D8387
split-complementary
#5E2D87 #83872D #2D8731
monochromatic
#1E0E2B #3E1E59 #5E2D87 #7E3CB5 #9C63CB

Accessibility & contrast

On white

9.54
#5E2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5E2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2D87
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2D87#FFFFFF#000000##FFFFFF
##5E2D871.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#174685
Tritanopia (blue-blind)
#574056
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2d87;
/* rgb */ color: rgb(94, 45, 135);
/* oklch */ color: oklch(40.9% 0.146 305.9);
Tailwind
colors: {
  custom: {
    50: '#8f69ab',
    500: '#5e2d87',
    950: '#000000',
  },
}
SCSS
$custom: #5e2d87;
$custom-light: #8f69ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2d87",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 272.667,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40887,
    "c": 0.14601,
    "h": 305.9
  },
  "luminance": 0.06006
}

Semantic roles & 50–950 ramp

primary
#5E2D87
secondary
#84B25E
accent
#DA4E8E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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