#5B237A#5B237A

#5B237A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.145 H 310.9°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#5B237A
RGBrgb(91, 35, 122)
HSLhsl(279, 55%, 31%)
HSVhsv(279, 71%, 48%)
CMYKcmyk(25.4%, 71.3%, 0%, 52.2%)
CIE-LABlab(26.25, 40.85, -38.72)
CIE-LCHlch(26.25, 56.28, 316.54°)
OKLaboklab(38.22% 0.0947 -0.1094)
OKLCHoklch(38.22% 0.145 310.9)
XYZxyz(8.4276, 4.8315, 18.8972)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B237A #427A23
analogous
#2F237A #5B237A #7A236D
triadic
#5B237A #7A5B23 #237A5B
tetradic
#5B237A #7A2F23 #427A23 #236D7A
square
#5B237A #7A2F23 #427A23 #236D7A
split-complementary
#5B237A #6D7A23 #237A2F
monochromatic
#14081B #38154A #5B237A #7E31AA #9E4CCC

Accessibility & contrast

On white

10.68
#5B237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B237A
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B237A#FFFFFF#000000##FFFFFF
##5B237A1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#173F78
Tritanopia (blue-blind)
#57354B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b237a;
/* rgb */ color: rgb(91, 35, 122);
/* oklch */ color: oklch(38.2% 0.145 310.9);
Tailwind
colors: {
  custom: {
    50: '#8d63a1',
    500: '#5b237a',
    950: '#000000',
  },
}
SCSS
$custom: #5b237a;
$custom-light: #8d63a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b237a",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 278.621,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38218,
    "c": 0.1447,
    "h": 310.9
  },
  "luminance": 0.04831
}

Semantic roles & 50–950 ramp

primary
#5B237A
secondary
#6FAD4C
accent
#DF497E
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #5B237A

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

Preview Lab → · Contrast checker → · Palette generator →

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