#5B23B1#5B23B1

#5B23B1 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.9% C 0.204 H 293.7°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#5B23B1
RGBrgb(91, 35, 177)
HSLhsl(264, 67%, 42%)
HSVhsv(264, 80%, 69%)
CMYKcmyk(48.6%, 80.2%, 0%, 30.6%)
CIE-LABlab(30.88, 54.55, -64.97)
CIE-LCHlch(30.88, 84.84, 310.02°)
OKLaboklab(42.91% 0.0818 -0.1865)
OKLCHoklch(42.91% 0.204 293.7)
XYZxyz(12.8490, 6.6001, 42.1834)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B23B1 #79B123
analogous
#2332B1 #5B23B1 #A223B1
triadic
#5B23B1 #B15B23 #23B15B
tetradic
#5B23B1 #B12332 #79B123 #23B1A2
square
#5B23B1 #B12332 #79B123 #23B1A2
split-complementary
#5B23B1 #B1A223 #32B123
monochromatic
#260F4B #41197E #5B23B1 #7839D8 #9B6CE2

Accessibility & contrast

On white

9.05
#5B23B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5B23B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B23B1
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B23B1#FFFFFF#000000##FFFFFF
##5B23B11.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#0046AE
Tritanopia (blue-blind)
#404C6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b23b1;
/* rgb */ color: rgb(91, 35, 177);
/* oklch */ color: oklch(42.9% 0.204 293.7);
Tailwind
colors: {
  custom: {
    50: '#9266c9',
    500: '#5b23b1',
    950: '#000000',
  },
}
SCSS
$custom: #5b23b1;
$custom-light: #9266c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b23b1",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 263.662,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42909,
    "c": 0.20365,
    "h": 293.7
  },
  "luminance": 0.06601
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B23B1

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

Preview Lab → · Contrast checker → · Palette generator →

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