#5B23A9#5B23A9

#5B23A9 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.195 H 295.6°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#5B23A9
RGBrgb(91, 35, 169)
HSLhsl(265, 66%, 40%)
HSVhsv(265, 79%, 66%)
CMYKcmyk(46.2%, 79.3%, 0%, 33.7%)
CIE-LABlab(30.13, 52.50, -61.40)
CIE-LCHlch(30.13, 80.79, 310.53°)
OKLaboklab(42.17% 0.0843 -0.176)
OKLCHoklch(42.17% 0.195 295.6)
XYZxyz(12.0749, 6.2905, 38.1064)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B23A9 #71A923
analogous
#232EA9 #5B23A9 #9E23A9
triadic
#5B23A9 #A95B23 #23A95B
tetradic
#5B23A9 #A9232E #71A923 #23A99E
square
#5B23A9 #A9232E #71A923 #23A99E
split-complementary
#5B23A9 #A99E23 #2EA923
monochromatic
#240E44 #401976 #5B23A9 #7734D5 #9967DF

Accessibility & contrast

On white

9.30
#5B23A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5B23A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B23A9
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B23A9#FFFFFF#000000##FFFFFF
##5B23A91.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#454966
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b23a9;
/* rgb */ color: rgb(91, 35, 169);
/* oklch */ color: oklch(42.2% 0.195 295.6);
Tailwind
colors: {
  custom: {
    50: '#9165c4',
    500: '#5b23a9',
    950: '#000000',
  },
}
SCSS
$custom: #5b23a9;
$custom-light: #9165c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b23a9",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 265.075,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.42165,
    "c": 0.19518,
    "h": 295.6
  },
  "luminance": 0.06291
}

Semantic roles & 50–950 ramp

primary
#5B23A9
secondary
#9CC563
accent
#E93FA2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B23A9

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

Preview Lab → · Contrast checker → · Palette generator →

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