#5E23A9#5E23A9

#5E23A9 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.5% C 0.195 H 297.0°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#5E23A9
RGBrgb(94, 35, 169)
HSLhsl(266, 66%, 40%)
HSVhsv(266, 79%, 66%)
CMYKcmyk(44.4%, 79.3%, 0%, 33.7%)
CIE-LABlab(30.51, 52.95, -60.77)
CIE-LCHlch(30.51, 80.60, 311.07°)
OKLaboklab(42.51% 0.0889 -0.1741)
OKLCHoklch(42.51% 0.195 297)
XYZxyz(12.3767, 6.4461, 38.1206)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E23A9 #6EA923
analogous
#232BA9 #5E23A9 #A123A9
triadic
#5E23A9 #A95E23 #23A95E
tetradic
#5E23A9 #A9232B #6EA923 #23A9A1
square
#5E23A9 #A9232B #6EA923 #23A9A1
split-complementary
#5E23A9 #A9A123 #2BA923
monochromatic
#260E44 #421976 #5E23A9 #7B34D5 #9C67DF

Accessibility & contrast

On white

9.17
#5E23A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5E23A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E23A9
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E23A9#FFFFFF#000000##FFFFFF
##5E23A91.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#4A4866
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e23a9;
/* rgb */ color: rgb(94, 35, 169);
/* oklch */ color: oklch(42.5% 0.195 297.0);
Tailwind
colors: {
  custom: {
    50: '#9365c4',
    500: '#5e23a9',
    950: '#000000',
  },
}
SCSS
$custom: #5e23a9;
$custom-light: #9365c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e23a9",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 266.418,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.42511,
    "c": 0.19545,
    "h": 297
  },
  "luminance": 0.06446
}

Semantic roles & 50–950 ramp

primary
#5E23A9
secondary
#9AC563
accent
#E93F9E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E23A9

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

Preview Lab → · Contrast checker → · Palette generator →

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