#5B237D#5B237D

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

Color values

HEX#5B237D
RGBrgb(91, 35, 125)
HSLhsl(277, 56%, 31%)
HSVhsv(277, 72%, 49%)
CMYKcmyk(27.2%, 72%, 0%, 51%)
CIE-LABlab(26.47, 41.56, -40.26)
CIE-LCHlch(26.47, 57.86, 315.91°)
OKLaboklab(38.44% 0.0944 -0.1139)
OKLCHoklch(38.44% 0.148 309.6)
XYZxyz(8.6164, 4.9070, 19.8913)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B237D #457D23
analogous
#2E237D #5B237D #7D2372
triadic
#5B237D #7D5B23 #237D5B
tetradic
#5B237D #7D2E23 #457D23 #23727D
square
#5B237D #7D2E23 #457D23 #23727D
split-complementary
#5B237D #727D23 #237D2E
monochromatic
#15081D #38164D #5B237D #7E30AD #9D4DCD

Accessibility & contrast

On white

10.60
#5B237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B237D
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B237D#FFFFFF#000000##FFFFFF
##5B237D1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#123F7B
Tritanopia (blue-blind)
#56374D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b237d;
/* rgb */ color: rgb(91, 35, 125);
/* oklch */ color: oklch(38.4% 0.148 309.6);
Tailwind
colors: {
  custom: {
    50: '#8d63a3',
    500: '#5b237d',
    950: '#000000',
  },
}
SCSS
$custom: #5b237d;
$custom-light: #8d63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b237d",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 277.333,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38444,
    "c": 0.14794,
    "h": 309.6
  },
  "luminance": 0.04907
}

Semantic roles & 50–950 ramp

primary
#5B237D
secondary
#72AF4C
accent
#E04881
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D050F
muted
#7D7A7F

Preview Lab

Preview with #5B237D

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

Preview Lab → · Contrast checker → · Palette generator →

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