#5E236A#5E236A

#5E236A is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.5% C 0.129 H 320.5°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#5E236A
RGBrgb(94, 35, 106)
HSLhsl(290, 50%, 28%)
HSVhsv(290, 67%, 42%)
CMYKcmyk(11.3%, 67%, 0%, 58.4%)
CIE-LABlab(25.63, 38.00, -29.44)
CIE-LCHlch(25.63, 48.07, 322.24°)
OKLaboklab(37.52% 0.0996 -0.0821)
OKLCHoklch(37.52% 0.129 320.5)
XYZxyz(7.8183, 4.6227, 14.1133)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E236A #2F6A23
analogous
#3A236A #5E236A #6A2353
triadic
#5E236A #6A5E23 #236A5E
tetradic
#5E236A #6A3A23 #2F6A23 #23536A
square
#5E236A #6A3A23 #2F6A23 #23536A
split-complementary
#5E236A #536A23 #236A3A
monochromatic
#140817 #35143C #5E236A #873298 #AD46C2

Accessibility & contrast

On white

10.91
#5E236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5E236A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E236A
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E236A#FFFFFF#000000##FFFFFF
##5E236A1.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10396C
Deuteranopia (green-blind)
#2A3F68
Tritanopia (blue-blind)
#5F2F43
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e236a;
/* rgb */ color: rgb(94, 35, 106);
/* oklch */ color: oklch(37.5% 0.129 320.5);
Tailwind
colors: {
  custom: {
    50: '#8e6295',
    500: '#5e236a',
    950: '#000000',
  },
}
SCSS
$custom: #5e236a;
$custom-light: #8e6295;
$custom-dark: #000000;
JSON
{
  "hex": "#5e236a",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 289.859,
    "s": 50.355,
    "l": 27.647
  },
  "oklch": {
    "l": 0.37524,
    "c": 0.12912,
    "h": 320.5
  },
  "luminance": 0.04622
}

Semantic roles & 50–950 ramp

primary
#5E236A
secondary
#599D4B
accent
#DA4E66
background
#F8F6F9
surface
#F0EBF1
border
#CBC6CB
text
#0D050D
muted
#7D7A7E

Preview Lab

Preview with #5E236A

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

Preview Lab → · Contrast checker → · Palette generator →

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