#5D237D#5D237D

#5D237D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.149 H 310.8°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#5D237D
RGBrgb(93, 35, 125)
HSLhsl(279, 56%, 31%)
HSVhsv(279, 72%, 49%)
CMYKcmyk(25.6%, 72%, 0%, 51%)
CIE-LABlab(26.76, 42.01, -39.77)
CIE-LCHlch(26.76, 57.85, 316.57°)
OKLaboklab(38.72% 0.0972 -0.1124)
OKLCHoklch(38.72% 0.149 310.8)
XYZxyz(8.8162, 5.0101, 19.9007)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D237D #437D23
analogous
#30237D #5D237D #7D2370
triadic
#5D237D #7D5D23 #237D5D
tetradic
#5D237D #7D3023 #437D23 #23707D
square
#5D237D #7D3023 #437D23 #23707D
split-complementary
#5D237D #707D23 #237D30
monochromatic
#16081D #39164D #5D237D #8130AD #A04DCD

Accessibility & contrast

On white

10.49
#5D237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5D237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D237D
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D237D#FFFFFF#000000##FFFFFF
##5D237D1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#16407B
Tritanopia (blue-blind)
#59364D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d237d;
/* rgb */ color: rgb(93, 35, 125);
/* oklch */ color: oklch(38.7% 0.149 310.8);
Tailwind
colors: {
  custom: {
    50: '#8e63a3',
    500: '#5d237d',
    950: '#000000',
  },
}
SCSS
$custom: #5d237d;
$custom-light: #8e63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d237d",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 278.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38717,
    "c": 0.14861,
    "h": 310.8
  },
  "luminance": 0.0501
}

Semantic roles & 50–950 ramp

primary
#5D237D
secondary
#70AF4C
accent
#E0487E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5D237D

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

Preview Lab → · Contrast checker → · Palette generator →

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