#5E23A6#5E23A6

#5E23A6 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.192 H 297.8°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#5E23A6
RGBrgb(94, 35, 166)
HSLhsl(267, 65%, 39%)
HSVhsv(267, 79%, 65%)
CMYKcmyk(43.4%, 78.9%, 0%, 34.9%)
CIE-LABlab(30.24, 52.20, -59.40)
CIE-LCHlch(30.24, 79.08, 311.31°)
OKLaboklab(42.24% 0.0898 -0.1701)
OKLCHoklch(42.24% 0.192 297.8)
XYZxyz(12.0983, 6.3347, 36.6543)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E23A6 #6BA623
analogous
#232AA6 #5E23A6 #A023A6
triadic
#5E23A6 #A65E23 #23A65E
tetradic
#5E23A6 #A6232A #6BA623 #23A6A0
square
#5E23A6 #A6232A #6BA623 #23A6A0
split-complementary
#5E23A6 #A6A023 #2AA623
monochromatic
#250E41 #411873 #5E23A6 #7B32D4 #9C65DF

Accessibility & contrast

On white

9.26
#5E23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5E23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E23A6
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E23A6#FFFFFF#000000##FFFFFF
##5E23A61.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#4B4764
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e23a6;
/* rgb */ color: rgb(94, 35, 166);
/* oklch */ color: oklch(42.2% 0.192 297.8);
Tailwind
colors: {
  custom: {
    50: '#9365c1',
    500: '#5e23a6',
    950: '#000000',
  },
}
SCSS
$custom: #5e23a6;
$custom-light: #9365c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e23a6",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 267.023,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42241,
    "c": 0.1923,
    "h": 297.8
  },
  "luminance": 0.06335
}

Semantic roles & 50–950 ramp

primary
#5E23A6
secondary
#97C461
accent
#E8409C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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