#5E2585#5E2585

#5E2585 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.155 H 308.0°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#5E2585
RGBrgb(94, 37, 133)
HSLhsl(276, 56%, 33%)
HSVhsv(276, 72%, 52%)
CMYKcmyk(29.3%, 72.2%, 0%, 47.8%)
CIE-LABlab(27.84, 43.18, -43.06)
CIE-LCHlch(27.84, 60.98, 315.08°)
OKLaboklab(39.7% 0.0953 -0.122)
OKLCHoklch(39.7% 0.155 308)
XYZxyz(9.5104, 5.3964, 22.7264)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2585 #4C8525
analogous
#2E2585 #5E2585 #85257C
triadic
#5E2585 #855E25 #25855E
tetradic
#5E2585 #852E25 #4C8525 #257C85
square
#5E2585 #852E25 #4C8525 #257C85
split-complementary
#5E2585 #7C8525 #25852E
monochromatic
#1A0A25 #3C1855 #5E2585 #8032B5 #9E55D0

Accessibility & contrast

On white

10.10
#5E2585 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5E2585 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2585
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2585#FFFFFF#000000##FFFFFF
##5E25851.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004088
Deuteranopia (green-blind)
#0C4283
Tritanopia (blue-blind)
#583B52
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e2585;
/* rgb */ color: rgb(94, 37, 133);
/* oklch */ color: oklch(39.7% 0.155 308.0);
Tailwind
colors: {
  custom: {
    50: '#8f65a9',
    500: '#5e2585',
    950: '#000000',
  },
}
SCSS
$custom: #5e2585;
$custom-light: #8f65a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2585",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 133
  },
  "hsl": {
    "h": 275.625,
    "s": 56.471,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39699,
    "c": 0.15485,
    "h": 308
  },
  "luminance": 0.05396
}

Semantic roles & 50–950 ramp

primary
#5E2585
secondary
#7AB452
accent
#E04886
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2585

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

Preview Lab → · Contrast checker → · Palette generator →

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