#5B239B#5B239B

#5B239B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.180 H 299.3°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#5B239B
RGBrgb(91, 35, 155)
HSLhsl(268, 63%, 37%)
HSVhsv(268, 77%, 61%)
CMYKcmyk(41.3%, 77.4%, 0%, 39.2%)
CIE-LABlab(28.88, 48.94, -54.96)
CIE-LCHlch(28.88, 73.59, 311.68°)
OKLaboklab(40.91% 0.0883 -0.1571)
OKLCHoklch(40.91% 0.18 299.3)
XYZxyz(10.8303, 5.7926, 31.5515)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B239B #639B23
analogous
#23279B #5B239B #97239B
triadic
#5B239B #9B5B23 #239B5B
tetradic
#5B239B #9B2327 #639B23 #239B97
square
#5B239B #9B2327 #639B23 #239B97
split-complementary
#5B239B #9B9723 #279B23
monochromatic
#200C37 #3E1869 #5B239B #782ECD #985EDB

Accessibility & contrast

On white

9.73
#5B239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5B239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B239B
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B239B#FFFFFF#000000##FFFFFF
##5B239B1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#4C435E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b239b;
/* rgb */ color: rgb(91, 35, 155);
/* oklch */ color: oklch(40.9% 0.180 299.3);
Tailwind
colors: {
  custom: {
    50: '#9064b9',
    500: '#5b239b',
    950: '#000000',
  },
}
SCSS
$custom: #5b239b;
$custom-light: #9064b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b239b",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 268,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40907,
    "c": 0.18025,
    "h": 299.3
  },
  "luminance": 0.05793
}

Semantic roles & 50–950 ramp

primary
#5B239B
secondary
#90BF5A
accent
#E64299
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B239B

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

Preview Lab → · Contrast checker → · Palette generator →

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