#5B23B2#5B23B2

#5B23B2 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 43.0% C 0.205 H 293.5°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#5B23B2
RGBrgb(91, 35, 178)
HSLhsl(263, 67%, 42%)
HSVhsv(263, 80%, 70%)
CMYKcmyk(48.9%, 80.3%, 0%, 30.2%)
CIE-LABlab(30.97, 54.81, -65.42)
CIE-LCHlch(30.97, 85.34, 309.96°)
OKLaboklab(43% 0.0815 -0.1878)
OKLCHoklch(43% 0.205 293.5)
XYZxyz(12.9491, 6.6401, 42.7102)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B23B2 #7AB223
analogous
#2332B2 #5B23B2 #A323B2
triadic
#5B23B2 #B25B23 #23B25B
tetradic
#5B23B2 #B22332 #7AB223 #23B2A3
square
#5B23B2 #B22332 #7AB223 #23B2A3
split-complementary
#5B23B2 #B2A323 #32B223
monochromatic
#270F4C #41197F #5B23B2 #783AD8 #9B6DE2

Accessibility & contrast

On white

9.02
#5B23B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5B23B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B23B2
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B23B2#FFFFFF#000000##FFFFFF
##5B23B21.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#3F4C6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b23b2;
/* rgb */ color: rgb(91, 35, 178);
/* oklch */ color: oklch(43.0% 0.205 293.5);
Tailwind
colors: {
  custom: {
    50: '#9366ca',
    500: '#5b23b2',
    950: '#000000',
  },
}
SCSS
$custom: #5b23b2;
$custom-light: #9366ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5b23b2",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 178
  },
  "hsl": {
    "h": 263.497,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43003,
    "c": 0.2047,
    "h": 293.5
  },
  "luminance": 0.06641
}

Semantic roles & 50–950 ramp

primary
#5B23B2
secondary
#A3C968
accent
#EA3EA7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B23B2

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

Preview Lab → · Contrast checker → · Palette generator →

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