#5E23A4#5E23A4

#5E23A4 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.190 H 298.4°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#5E23A4
RGBrgb(94, 35, 164)
HSLhsl(267, 65%, 39%)
HSVhsv(267, 79%, 64%)
CMYKcmyk(42.7%, 78.7%, 0%, 35.7%)
CIE-LABlab(30.06, 51.70, -58.49)
CIE-LCHlch(30.06, 78.06, 311.47°)
OKLaboklab(42.06% 0.0904 -0.1674)
OKLCHoklch(42.06% 0.19 298.4)
XYZxyz(11.9162, 6.2619, 35.6956)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E23A4 #69A423
analogous
#2329A4 #5E23A4 #9F23A4
triadic
#5E23A4 #A45E23 #23A45E
tetradic
#5E23A4 #A42329 #69A423 #23A49F
square
#5E23A4 #A42329 #69A423 #23A49F
split-complementary
#5E23A4 #A49F23 #29A423
monochromatic
#240D3F #411872 #5E23A4 #7B31D3 #9B64DE

Accessibility & contrast

On white

9.32
#5E23A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5E23A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E23A4
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E23A4#FFFFFF#000000##FFFFFF
##5E23A41.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#4C4663
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e23a4;
/* rgb */ color: rgb(94, 35, 164);
/* oklch */ color: oklch(42.1% 0.190 298.4);
Tailwind
colors: {
  custom: {
    50: '#9365c0',
    500: '#5e23a4',
    950: '#000000',
  },
}
SCSS
$custom: #5e23a4;
$custom-light: #9365c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e23a4",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 267.442,
    "s": 64.824,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42062,
    "c": 0.1902,
    "h": 298.4
  },
  "luminance": 0.06262
}

Semantic roles & 50–950 ramp

primary
#5E23A4
secondary
#96C360
accent
#E8409B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E23A4

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

Preview Lab → · Contrast checker → · Palette generator →

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