#5E23AC#5E23AC

#5E23AC is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.8% C 0.199 H 296.3°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5E23AC
RGBrgb(94, 35, 172)
HSLhsl(266, 66%, 41%)
HSVhsv(266, 80%, 67%)
CMYKcmyk(45.3%, 79.7%, 0%, 32.5%)
CIE-LABlab(30.78, 53.71, -62.12)
CIE-LCHlch(30.78, 82.12, 310.84°)
OKLaboklab(42.78% 0.088 -0.178)
OKLCHoklch(42.78% 0.199 296.3)
XYZxyz(12.6615, 6.5600, 39.6208)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E23AC #71AC23
analogous
#232DAC #5E23AC #A223AC
triadic
#5E23AC #AC5E23 #23AC5E
tetradic
#5E23AC #AC232D #71AC23 #23ACA2
square
#5E23AC #AC232D #71AC23 #23ACA2
split-complementary
#5E23AC #ACA223 #2DAC23
monochromatic
#260E46 #421979 #5E23AC #7B36D6 #9C69E0

Accessibility & contrast

On white

9.08
#5E23AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5E23AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E23AC
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E23AC#FFFFFF#000000##FFFFFF
##5E23AC1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B0
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#484A68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e23ac;
/* rgb */ color: rgb(94, 35, 172);
/* oklch */ color: oklch(42.8% 0.199 296.3);
Tailwind
colors: {
  custom: {
    50: '#9466c6',
    500: '#5e23ac',
    950: '#000000',
  },
}
SCSS
$custom: #5e23ac;
$custom-light: #9466c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e23ac",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 172
  },
  "hsl": {
    "h": 265.839,
    "s": 66.184,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42784,
    "c": 0.19859,
    "h": 296.3
  },
  "luminance": 0.0656
}

Semantic roles & 50–950 ramp

primary
#5E23AC
secondary
#9CC664
accent
#E93FA0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E23AC

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

Preview Lab → · Contrast checker → · Palette generator →

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