#5B237B#5B237B

#5B237B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.146 H 310.5°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#5B237B
RGBrgb(91, 35, 123)
HSLhsl(278, 56%, 31%)
HSVhsv(278, 72%, 48%)
CMYKcmyk(26%, 71.5%, 0%, 51.8%)
CIE-LABlab(26.32, 41.08, -39.23)
CIE-LCHlch(26.32, 56.81, 316.32°)
OKLaboklab(38.29% 0.0946 -0.1109)
OKLCHoklch(38.29% 0.146 310.5)
XYZxyz(8.4899, 4.8565, 19.2252)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B237B #437B23
analogous
#2F237B #5B237B #7B236F
triadic
#5B237B #7B5B23 #237B5B
tetradic
#5B237B #7B2F23 #437B23 #236F7B
square
#5B237B #7B2F23 #437B23 #236F7B
split-complementary
#5B237B #6F7B23 #237B2F
monochromatic
#15081C #38154B #5B237B #7E31AB #9E4CCC

Accessibility & contrast

On white

10.65
#5B237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5B237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B237B
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B237B#FFFFFF#000000##FFFFFF
##5B237B1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#153F79
Tritanopia (blue-blind)
#57364C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b237b;
/* rgb */ color: rgb(91, 35, 123);
/* oklch */ color: oklch(38.3% 0.146 310.5);
Tailwind
colors: {
  custom: {
    50: '#8d63a2',
    500: '#5b237b',
    950: '#000000',
  },
}
SCSS
$custom: #5b237b;
$custom-light: #8d63a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b237b",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 278.182,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38293,
    "c": 0.14578,
    "h": 310.5
  },
  "luminance": 0.04856
}

Semantic roles & 50–950 ramp

primary
#5B237B
secondary
#70AE4C
accent
#DF497F
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #5B237B

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

Preview Lab → · Contrast checker → · Palette generator →

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