#5B237C#5B237C

#5B237C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.147 H 310.0°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#5B237C
RGBrgb(91, 35, 124)
HSLhsl(278, 56%, 31%)
HSVhsv(278, 72%, 49%)
CMYKcmyk(26.6%, 71.8%, 0%, 51.4%)
CIE-LABlab(26.39, 41.32, -39.75)
CIE-LCHlch(26.39, 57.34, 316.11°)
OKLaboklab(38.37% 0.0945 -0.1124)
OKLCHoklch(38.37% 0.147 310)
XYZxyz(8.5528, 4.8816, 19.5566)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B237C #447C23
analogous
#2E237C #5B237C #7C2370
triadic
#5B237C #7C5B23 #237C5B
tetradic
#5B237C #7C2E23 #447C23 #23707C
square
#5B237C #7C2E23 #447C23 #23707C
split-complementary
#5B237C #707C23 #237C2E
monochromatic
#15081D #38164C #5B237C #7E30AC #9D4DCD

Accessibility & contrast

On white

10.63
#5B237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5B237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B237C
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B237C#FFFFFF#000000##FFFFFF
##5B237C1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#143F7A
Tritanopia (blue-blind)
#56364D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b237c;
/* rgb */ color: rgb(91, 35, 124);
/* oklch */ color: oklch(38.4% 0.147 310.0);
Tailwind
colors: {
  custom: {
    50: '#8d63a2',
    500: '#5b237c',
    950: '#000000',
  },
}
SCSS
$custom: #5b237c;
$custom-light: #8d63a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b237c",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 277.753,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38368,
    "c": 0.14686,
    "h": 310
  },
  "luminance": 0.04881
}

Semantic roles & 50–950 ramp

primary
#5B237C
secondary
#71AF4C
accent
#DF4980
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #5B237C

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

Preview Lab → · Contrast checker → · Palette generator →

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