#5E239B#5E239B

#5E239B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.181 H 300.9°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5E239B
RGBrgb(94, 35, 155)
HSLhsl(270, 63%, 37%)
HSVhsv(270, 77%, 61%)
CMYKcmyk(39.4%, 77.4%, 0%, 39.2%)
CIE-LABlab(29.28, 49.46, -54.30)
CIE-LCHlch(29.28, 73.44, 312.33°)
OKLaboklab(41.27% 0.0928 -0.1551)
OKLCHoklch(41.27% 0.181 300.9)
XYZxyz(11.1321, 5.9482, 31.5656)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E239B #609B23
analogous
#23249B #5E239B #9A239B
triadic
#5E239B #9B5E23 #239B5E
tetradic
#5E239B #9B2324 #609B23 #239B9A
square
#5E239B #9B2324 #609B23 #239B9A
split-complementary
#5E239B #9B9A23 #249B23
monochromatic
#210C37 #401869 #5E239B #7C2ECD #9B5EDB

Accessibility & contrast

On white

9.59
#5E239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E239B
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E239B#FFFFFF#000000##FFFFFF
##5E239B1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#50425E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e239b;
/* rgb */ color: rgb(94, 35, 155);
/* oklch */ color: oklch(41.3% 0.181 300.9);
Tailwind
colors: {
  custom: {
    50: '#9265b9',
    500: '#5e239b',
    950: '#000000',
  },
}
SCSS
$custom: #5e239b;
$custom-light: #9265b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e239b",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 269.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41273,
    "c": 0.18072,
    "h": 300.9
  },
  "luminance": 0.05948
}

Semantic roles & 50–950 ramp

primary
#5E239B
secondary
#8EBF5A
accent
#E64295
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E239B

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

Preview Lab → · Contrast checker → · Palette generator →

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