#5B23A6#5B23A6

#5B23A6 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.192 H 296.3°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#5B23A6
RGBrgb(91, 35, 166)
HSLhsl(266, 65%, 39%)
HSVhsv(266, 79%, 65%)
CMYKcmyk(45.2%, 78.9%, 0%, 34.9%)
CIE-LABlab(29.86, 51.73, -60.04)
CIE-LCHlch(29.86, 79.26, 310.75°)
OKLaboklab(41.89% 0.0852 -0.172)
OKLCHoklch(41.89% 0.192 296.3)
XYZxyz(11.7965, 6.1791, 36.6402)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B23A6 #6EA623
analogous
#232DA6 #5B23A6 #9D23A6
triadic
#5B23A6 #A65B23 #23A65B
tetradic
#5B23A6 #A6232D #6EA623 #23A69D
square
#5B23A6 #A6232D #6EA623 #23A69D
split-complementary
#5B23A6 #A69D23 #2DA623
monochromatic
#240E41 #3F1873 #5B23A6 #7732D4 #9965DF

Accessibility & contrast

On white

9.39
#5B23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5B23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B23A6
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B23A6#FFFFFF#000000##FFFFFF
##5B23A61.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#464764
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b23a6;
/* rgb */ color: rgb(91, 35, 166);
/* oklch */ color: oklch(41.9% 0.192 296.3);
Tailwind
colors: {
  custom: {
    50: '#9165c1',
    500: '#5b23a6',
    950: '#000000',
  },
}
SCSS
$custom: #5b23a6;
$custom-light: #9165c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b23a6",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 265.649,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4189,
    "c": 0.19199,
    "h": 296.3
  },
  "luminance": 0.06179
}

Semantic roles & 50–950 ramp

primary
#5B23A6
secondary
#9AC461
accent
#E840A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5B23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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