#5E237E#5E237E

#5E237E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.150 H 311.0°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#5E237E
RGBrgb(94, 35, 126)
HSLhsl(279, 57%, 32%)
HSVhsv(279, 72%, 49%)
CMYKcmyk(25.4%, 72.2%, 0%, 50.6%)
CIE-LABlab(26.98, 42.47, -40.04)
CIE-LCHlch(26.98, 58.37, 316.69°)
OKLaboklab(38.93% 0.0985 -0.1132)
OKLCHoklch(38.93% 0.15 311)
XYZxyz(8.9823, 5.0883, 20.2436)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E237E #437E23
analogous
#31237E #5E237E #7E2371
triadic
#5E237E #7E5E23 #237E5E
tetradic
#5E237E #7E3123 #437E23 #23717E
square
#5E237E #7E3123 #437E23 #23717E
split-complementary
#5E237E #717E23 #237E31
monochromatic
#17081E #3A164E #5E237E #8230AE #A14ECE

Accessibility & contrast

On white

10.41
#5E237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5E237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E237E
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E237E#FFFFFF#000000##FFFFFF
##5E237E1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#16417C
Tritanopia (blue-blind)
#5A374E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e237e;
/* rgb */ color: rgb(94, 35, 126);
/* oklch */ color: oklch(38.9% 0.150 311.0);
Tailwind
colors: {
  custom: {
    50: '#8f63a4',
    500: '#5e237e',
    950: '#000000',
  },
}
SCSS
$custom: #5e237e;
$custom-light: #8f63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e237e",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 278.901,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38929,
    "c": 0.15001,
    "h": 311
  },
  "luminance": 0.05088
}

Semantic roles & 50–950 ramp

primary
#5E237E
secondary
#70B04C
accent
#E0487D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5E237E

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

Preview Lab → · Contrast checker → · Palette generator →

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