#5B23A5#5B23A5

#5B23A5 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.8% C 0.191 H 296.6°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#5B23A5
RGBrgb(91, 35, 165)
HSLhsl(266, 65%, 39%)
HSVhsv(266, 79%, 65%)
CMYKcmyk(44.8%, 78.8%, 0%, 35.3%)
CIE-LABlab(29.77, 51.48, -59.59)
CIE-LCHlch(29.77, 78.74, 310.82°)
OKLaboklab(41.8% 0.0855 -0.1707)
OKLCHoklch(41.8% 0.191 296.6)
XYZxyz(11.7051, 6.1426, 36.1589)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B23A5 #6DA523
analogous
#232CA5 #5B23A5 #9C23A5
triadic
#5B23A5 #A55B23 #23A55B
tetradic
#5B23A5 #A5232C #6DA523 #23A59C
square
#5B23A5 #A5232C #6DA523 #23A59C
split-complementary
#5B23A5 #A59C23 #2CA523
monochromatic
#230E40 #3F1873 #5B23A5 #7732D3 #9964DE

Accessibility & contrast

On white

9.42
#5B23A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5B23A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B23A5
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B23A5#FFFFFF#000000##FFFFFF
##5B23A51.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#474764
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b23a5;
/* rgb */ color: rgb(91, 35, 165);
/* oklch */ color: oklch(41.8% 0.191 296.6);
Tailwind
colors: {
  custom: {
    50: '#9165c1',
    500: '#5b23a5',
    950: '#000000',
  },
}
SCSS
$custom: #5b23a5;
$custom-light: #9165c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b23a5",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 265.846,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41799,
    "c": 0.19093,
    "h": 296.6
  },
  "luminance": 0.06143
}

Semantic roles & 50–950 ramp

primary
#5B23A5
secondary
#99C460
accent
#E840A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5B23A5

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

Preview Lab → · Contrast checker → · Palette generator →

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