#5E236E#5E236E

#5E236E is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.8% C 0.133 H 318.4°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#5E236E
RGBrgb(94, 35, 110)
HSLhsl(287, 52%, 28%)
HSVhsv(287, 68%, 43%)
CMYKcmyk(14.5%, 68.2%, 0%, 56.9%)
CIE-LABlab(25.89, 38.86, -31.61)
CIE-LCHlch(25.89, 50.10, 320.88°)
OKLaboklab(37.79% 0.0996 -0.0885)
OKLCHoklch(37.79% 0.133 318.4)
XYZxyz(8.0312, 4.7079, 15.2345)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E236E #336E23
analogous
#38236E #5E236E #6E2358
triadic
#5E236E #6E5E23 #236E5E
tetradic
#5E236E #6E3823 #336E23 #23586E
square
#5E236E #6E3823 #336E23 #23586E
split-complementary
#5E236E #586E23 #236E38
monochromatic
#140717 #361440 #5E236E #86329C #AA47C4

Accessibility & contrast

On white

10.82
#5E236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5E236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E236E
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E236E#FFFFFF#000000##FFFFFF
##5E236E1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093970
Deuteranopia (green-blind)
#273F6C
Tritanopia (blue-blind)
#5E3045
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e236e;
/* rgb */ color: rgb(94, 35, 110);
/* oklch */ color: oklch(37.8% 0.133 318.4);
Tailwind
colors: {
  custom: {
    50: '#8e6398',
    500: '#5e236e',
    950: '#000000',
  },
}
SCSS
$custom: #5e236e;
$custom-light: #8e6398;
$custom-dark: #000000;
JSON
{
  "hex": "#5e236e",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 287.2,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37789,
    "c": 0.13323,
    "h": 318.4
  },
  "luminance": 0.04708
}

Semantic roles & 50–950 ramp

primary
#5E236E
secondary
#5EA14C
accent
#DB4D6B
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D050D
muted
#7D7A7E

Preview Lab

Preview with #5E236E

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

Preview Lab → · Contrast checker → · Palette generator →

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