#5B23A0#5B23A0

#5B23A0 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.186 H 297.9°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5B23A0
RGBrgb(91, 35, 160)
HSLhsl(267, 64%, 38%)
HSVhsv(267, 78%, 63%)
CMYKcmyk(43.1%, 78.1%, 0%, 37.3%)
CIE-LABlab(29.32, 50.21, -57.29)
CIE-LCHlch(29.32, 76.18, 311.23°)
OKLaboklab(41.35% 0.087 -0.164)
OKLCHoklch(41.35% 0.186 297.9)
XYZxyz(11.2589, 5.9641, 33.8089)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B23A0 #68A023
analogous
#2329A0 #5B23A0 #9923A0
triadic
#5B23A0 #A05B23 #23A05B
tetradic
#5B23A0 #A02329 #68A023 #23A099
square
#5B23A0 #A02329 #68A023 #23A099
split-complementary
#5B23A0 #A09923 #29A023
monochromatic
#220D3C #3E186E #5B23A0 #782FD1 #9861DC

Accessibility & contrast

On white

9.58
#5B23A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5B23A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B23A0
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B23A0#FFFFFF#000000##FFFFFF
##5B23A01.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#494561
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b23a0;
/* rgb */ color: rgb(91, 35, 160);
/* oklch */ color: oklch(41.3% 0.186 297.9);
Tailwind
colors: {
  custom: {
    50: '#9065bd',
    500: '#5b23a0',
    950: '#000000',
  },
}
SCSS
$custom: #5b23a0;
$custom-light: #9065bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b23a0",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 160
  },
  "hsl": {
    "h": 266.88,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41349,
    "c": 0.1856,
    "h": 297.9
  },
  "luminance": 0.05964
}

Semantic roles & 50–950 ramp

primary
#5B23A0
secondary
#95C15D
accent
#E7419D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B23A0

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

Preview Lab → · Contrast checker → · Palette generator →

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