#5E23A0#5E23A0

#5E23A0 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.186 H 299.5°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#5E23A0
RGBrgb(94, 35, 160)
HSLhsl(268, 64%, 38%)
HSVhsv(268, 78%, 63%)
CMYKcmyk(41.3%, 78.1%, 0%, 37.3%)
CIE-LABlab(29.71, 50.70, -56.64)
CIE-LCHlch(29.71, 76.01, 311.83°)
OKLaboklab(41.71% 0.0915 -0.1619)
OKLCHoklch(41.71% 0.186 299.5)
XYZxyz(11.5607, 6.1197, 33.8230)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E23A0 #65A023
analogous
#2326A0 #5E23A0 #9C23A0
triadic
#5E23A0 #A05E23 #23A05E
tetradic
#5E23A0 #A02326 #65A023 #23A09C
square
#5E23A0 #A02326 #65A023 #23A09C
split-complementary
#5E23A0 #A09C23 #26A023
monochromatic
#230D3C #40186E #5E23A0 #7C2FD1 #9B61DC

Accessibility & contrast

On white

9.44
#5E23A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5E23A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E23A0
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E23A0#FFFFFF#000000##FFFFFF
##5E23A01.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#00459E
Tritanopia (blue-blind)
#4E4561
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e23a0;
/* rgb */ color: rgb(94, 35, 160);
/* oklch */ color: oklch(41.7% 0.186 299.5);
Tailwind
colors: {
  custom: {
    50: '#9265bd',
    500: '#5e23a0',
    950: '#000000',
  },
}
SCSS
$custom: #5e23a0;
$custom-light: #9265bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e23a0",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 160
  },
  "hsl": {
    "h": 268.32,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41708,
    "c": 0.18599,
    "h": 299.5
  },
  "luminance": 0.0612
}

Semantic roles & 50–950 ramp

primary
#5E23A0
secondary
#92C15D
accent
#E74199
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E23A0

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

Preview Lab → · Contrast checker → · Palette generator →

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