#5B239A#5B239A

#5B239A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.179 H 299.6°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#5B239A
RGBrgb(91, 35, 154)
HSLhsl(268, 63%, 37%)
HSVhsv(268, 77%, 60%)
CMYKcmyk(40.9%, 77.3%, 0%, 39.6%)
CIE-LABlab(28.80, 48.69, -54.49)
CIE-LCHlch(28.80, 73.08, 311.78°)
OKLaboklab(40.82% 0.0886 -0.1558)
OKLCHoklch(40.82% 0.179 299.6)
XYZxyz(10.7467, 5.7592, 31.1110)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B239A #629A23
analogous
#23279A #5B239A #97239A
triadic
#5B239A #9A5B23 #239A5B
tetradic
#5B239A #9A2327 #629A23 #239A97
square
#5B239A #9A2327 #629A23 #239A97
split-complementary
#5B239A #9A9723 #279A23
monochromatic
#200C36 #3E1868 #5B239A #782ECC #985DDA

Accessibility & contrast

On white

9.76
#5B239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5B239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B239A
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B239A#FFFFFF#000000##FFFFFF
##5B239A1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#4C425D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b239a;
/* rgb */ color: rgb(91, 35, 154);
/* oklch */ color: oklch(40.8% 0.179 299.6);
Tailwind
colors: {
  custom: {
    50: '#9064b9',
    500: '#5b239a',
    950: '#000000',
  },
}
SCSS
$custom: #5b239a;
$custom-light: #9064b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b239a",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 268.235,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4082,
    "c": 0.17918,
    "h": 299.6
  },
  "luminance": 0.05759
}

Semantic roles & 50–950 ramp

primary
#5B239A
secondary
#8FBF5A
accent
#E64299
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B239A

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

Preview Lab → · Contrast checker → · Palette generator →

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