#5B237E#5B237E

#5B237E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.149 H 309.2°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#5B237E
RGBrgb(91, 35, 126)
HSLhsl(277, 57%, 32%)
HSVhsv(277, 72%, 49%)
CMYKcmyk(27.8%, 72.2%, 0%, 50.6%)
CIE-LABlab(26.54, 41.80, -40.77)
CIE-LCHlch(26.54, 58.39, 315.71°)
OKLaboklab(38.52% 0.0942 -0.1154)
OKLCHoklch(38.52% 0.149 309.2)
XYZxyz(8.6806, 4.9327, 20.2294)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B237E #467E23
analogous
#2E237E #5B237E #7E2374
triadic
#5B237E #7E5B23 #237E5B
tetradic
#5B237E #7E2E23 #467E23 #23747E
square
#5B237E #7E2E23 #467E23 #23747E
split-complementary
#5B237E #747E23 #237E2E
monochromatic
#16081E #38164E #5B237E #7E30AE #9C4ECE

Accessibility & contrast

On white

10.57
#5B237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5B237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B237E
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B237E#FFFFFF#000000##FFFFFF
##5B237E1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#10407C
Tritanopia (blue-blind)
#56374E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b237e;
/* rgb */ color: rgb(91, 35, 126);
/* oklch */ color: oklch(38.5% 0.149 309.2);
Tailwind
colors: {
  custom: {
    50: '#8d63a4',
    500: '#5b237e',
    950: '#000000',
  },
}
SCSS
$custom: #5b237e;
$custom-light: #8d63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b237e",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 276.923,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3852,
    "c": 0.14902,
    "h": 309.2
  },
  "luminance": 0.04933
}

Semantic roles & 50–950 ramp

primary
#5B237E
secondary
#73B04C
accent
#E04882
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D050F
muted
#7D7A7F

Preview Lab

Preview with #5B237E

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

Preview Lab → · Contrast checker → · Palette generator →

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