#5E239A#5E239A

#5E239A is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.180 H 301.2°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#5E239A
RGBrgb(94, 35, 154)
HSLhsl(270, 63%, 37%)
HSVhsv(270, 77%, 60%)
CMYKcmyk(39%, 77.3%, 0%, 39.6%)
CIE-LABlab(29.20, 49.21, -53.82)
CIE-LCHlch(29.20, 72.93, 312.43°)
OKLaboklab(41.19% 0.0931 -0.1537)
OKLCHoklch(41.19% 0.18 301.2)
XYZxyz(11.0484, 5.9148, 31.1252)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E239A #5F9A23
analogous
#23239A #5E239A #9A239A
triadic
#5E239A #9A5E23 #239A5E
tetradic
#5E239A #9A2323 #5F9A23 #239A9A
square
#5E239A #9A2323 #5F9A23 #239A9A
split-complementary
#5E239A #9A9A23 #239A23
monochromatic
#210C36 #401868 #5E239A #7C2ECC #9B5DDA

Accessibility & contrast

On white

9.62
#5E239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5E239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E239A
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E239A#FFFFFF#000000##FFFFFF
##5E239A1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#51425D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e239a;
/* rgb */ color: rgb(94, 35, 154);
/* oklch */ color: oklch(41.2% 0.180 301.2);
Tailwind
colors: {
  custom: {
    50: '#9265b9',
    500: '#5e239a',
    950: '#000000',
  },
}
SCSS
$custom: #5e239a;
$custom-light: #9265b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e239a",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 269.748,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41187,
    "c": 0.17966,
    "h": 301.2
  },
  "luminance": 0.05915
}

Semantic roles & 50–950 ramp

primary
#5E239A
secondary
#8DBF5A
accent
#E64295
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E239A

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

Preview Lab → · Contrast checker → · Palette generator →

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