#5D237E#5D237E

#5D237E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.150 H 310.4°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#5D237E
RGBrgb(93, 35, 126)
HSLhsl(278, 57%, 32%)
HSVhsv(278, 72%, 49%)
CMYKcmyk(26.2%, 72.2%, 0%, 50.6%)
CIE-LABlab(26.84, 42.24, -40.28)
CIE-LCHlch(26.84, 58.37, 316.36°)
OKLaboklab(38.79% 0.0971 -0.1139)
OKLCHoklch(38.79% 0.15 310.4)
XYZxyz(8.8804, 5.0358, 20.2388)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D237E #447E23
analogous
#30237E #5D237E #7E2372
triadic
#5D237E #7E5D23 #237E5D
tetradic
#5D237E #7E3023 #447E23 #23727E
square
#5D237E #7E3023 #447E23 #23727E
split-complementary
#5D237E #727E23 #237E30
monochromatic
#16081E #3A164E #5D237E #8030AE #9F4ECE

Accessibility & contrast

On white

10.46
#5D237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5D237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D237E
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D237E#FFFFFF#000000##FFFFFF
##5D237E1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#14407C
Tritanopia (blue-blind)
#59374E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d237e;
/* rgb */ color: rgb(93, 35, 126);
/* oklch */ color: oklch(38.8% 0.150 310.4);
Tailwind
colors: {
  custom: {
    50: '#8e63a4',
    500: '#5d237e',
    950: '#000000',
  },
}
SCSS
$custom: #5d237e;
$custom-light: #8e63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d237e",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 278.242,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38792,
    "c": 0.14968,
    "h": 310.4
  },
  "luminance": 0.05036
}

Semantic roles & 50–950 ramp

primary
#5D237E
secondary
#71B04C
accent
#E0487F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5D237E

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

Preview Lab → · Contrast checker → · Palette generator →

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