#5E236B#5E236B

#5E236B is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.6% C 0.130 H 320.0°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#5E236B
RGBrgb(94, 35, 107)
HSLhsl(289, 51%, 28%)
HSVhsv(289, 67%, 42%)
CMYKcmyk(12.1%, 67.3%, 0%, 58%)
CIE-LABlab(25.69, 38.22, -29.98)
CIE-LCHlch(25.69, 48.58, 321.88°)
OKLaboklab(37.59% 0.0996 -0.0837)
OKLCHoklch(37.59% 0.13 320)
XYZxyz(7.8706, 4.6437, 14.3888)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E236B #306B23
analogous
#3A236B #5E236B #6B2354
triadic
#5E236B #6B5E23 #236B5E
tetradic
#5E236B #6B3A23 #306B23 #23546B
square
#5E236B #6B3A23 #306B23 #23546B
split-complementary
#5E236B #546B23 #236B3A
monochromatic
#140817 #35143D #5E236B #873299 #AC46C2

Accessibility & contrast

On white

10.89
#5E236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5E236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E236B
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E236B#FFFFFF#000000##FFFFFF
##5E236B1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F396D
Deuteranopia (green-blind)
#293F69
Tritanopia (blue-blind)
#5E2F43
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e236b;
/* rgb */ color: rgb(94, 35, 107);
/* oklch */ color: oklch(37.6% 0.130 320.0);
Tailwind
colors: {
  custom: {
    50: '#8e6396',
    500: '#5e236b',
    950: '#000000',
  },
}
SCSS
$custom: #5e236b;
$custom-light: #8e6396;
$custom-dark: #000000;
JSON
{
  "hex": "#5e236b",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 289.167,
    "s": 50.704,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37589,
    "c": 0.13014,
    "h": 320
  },
  "luminance": 0.04643
}

Semantic roles & 50–950 ramp

primary
#5E236B
secondary
#5A9E4B
accent
#DA4E67
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D050D
muted
#7D7A7E

Preview Lab

Preview with #5E236B

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

Preview Lab → · Contrast checker → · Palette generator →

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