#5B23BC#5B23BC

#5B23BC is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 44.0% C 0.215 H 291.3°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#5B23BC
RGBrgb(91, 35, 188)
HSLhsl(262, 69%, 44%)
HSVhsv(262, 81%, 74%)
CMYKcmyk(51.6%, 81.4%, 0%, 26.3%)
CIE-LABlab(31.94, 57.38, -69.77)
CIE-LCHlch(31.94, 90.33, 309.43°)
OKLaboklab(43.96% 0.0781 -0.2005)
OKLCHoklch(43.96% 0.215 291.3)
XYZxyz(13.9899, 7.0565, 48.1921)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B23BC #84BC23
analogous
#2337BC #5B23BC #A723BC
triadic
#5B23BC #BC5B23 #23BC5B
tetradic
#5B23BC #BC2337 #84BC23 #23BCA7
square
#5B23BC #BC2337 #84BC23 #23BCA7
split-complementary
#5B23BC #BCA723 #37BC23
monochromatic
#291055 #421988 #5B23BC #7941DC #9E74E5

Accessibility & contrast

On white

8.71
#5B23BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5B23BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B23BC
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B23BC#FFFFFF#000000##FFFFFF
##5B23BC1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC0
Deuteranopia (green-blind)
#0048B9
Tritanopia (blue-blind)
#385171
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b23bc;
/* rgb */ color: rgb(91, 35, 188);
/* oklch */ color: oklch(44.0% 0.215 291.3);
Tailwind
colors: {
  custom: {
    50: '#9466d1',
    500: '#5b23bc',
    950: '#000000',
  },
}
SCSS
$custom: #5b23bc;
$custom-light: #9466d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b23bc",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 188
  },
  "hsl": {
    "h": 261.961,
    "s": 68.61,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43959,
    "c": 0.21521,
    "h": 291.3
  },
  "luminance": 0.07057
}

Semantic roles & 50–950 ramp

primary
#5B23BC
secondary
#AACC6F
accent
#EB3CAB
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5B23BC

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

Preview Lab → · Contrast checker → · Palette generator →

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