#5B23B0#5B23B0

#5B23B0 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.8% C 0.203 H 293.9°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5B23B0
RGBrgb(91, 35, 176)
HSLhsl(264, 67%, 41%)
HSVhsv(264, 80%, 69%)
CMYKcmyk(48.3%, 80.1%, 0%, 31%)
CIE-LABlab(30.78, 54.29, -64.53)
CIE-LCHlch(30.78, 84.33, 310.08°)
OKLaboklab(42.82% 0.0821 -0.1852)
OKLCHoklch(42.82% 0.203 293.9)
XYZxyz(12.7497, 6.5604, 41.6604)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B23B0 #78B023
analogous
#2331B0 #5B23B0 #A223B0
triadic
#5B23B0 #B05B23 #23B05B
tetradic
#5B23B0 #B02331 #78B023 #23B0A2
square
#5B23B0 #B02331 #78B023 #23B0A2
split-complementary
#5B23B0 #B0A223 #31B023
monochromatic
#260F4A #41197D #5B23B0 #7839D8 #9B6CE2

Accessibility & contrast

On white

9.08
#5B23B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5B23B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B23B0
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B23B0#FFFFFF#000000##FFFFFF
##5B23B01.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB4
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#414C6A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b23b0;
/* rgb */ color: rgb(91, 35, 176);
/* oklch */ color: oklch(42.8% 0.203 293.9);
Tailwind
colors: {
  custom: {
    50: '#9265c9',
    500: '#5b23b0',
    950: '#000000',
  },
}
SCSS
$custom: #5b23b0;
$custom-light: #9265c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b23b0",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 176
  },
  "hsl": {
    "h": 263.83,
    "s": 66.825,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42815,
    "c": 0.20259,
    "h": 293.9
  },
  "luminance": 0.06561
}

Semantic roles & 50–950 ramp

primary
#5B23B0
secondary
#A1C867
accent
#EA3EA6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B23B0

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

Preview Lab → · Contrast checker → · Palette generator →

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