#5D238B#5D238B

#5D238B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.164 H 305.5°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#5D238B
RGBrgb(93, 35, 139)
HSLhsl(273, 60%, 34%)
HSVhsv(273, 75%, 55%)
CMYKcmyk(33.1%, 74.8%, 0%, 45.5%)
CIE-LABlab(27.83, 45.34, -46.82)
CIE-LCHlch(27.83, 65.18, 314.08°)
OKLaboklab(39.81% 0.095 -0.1331)
OKLCHoklch(39.81% 0.164 305.5)
XYZxyz(9.7744, 5.3934, 24.9472)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D238B #518B23
analogous
#29238B #5D238B #8B2385
triadic
#5D238B #8B5D23 #238B5D
tetradic
#5D238B #8B2923 #518B23 #23858B
square
#5D238B #8B2923 #518B23 #23858B
split-complementary
#5D238B #858B23 #238B29
monochromatic
#1C0A29 #3C175A #5D238B #7E2FBC #9C54D4

Accessibility & contrast

On white

10.10
#5D238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5D238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D238B
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D238B#FFFFFF#000000##FFFFFF
##5D238B1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#553C55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d238b;
/* rgb */ color: rgb(93, 35, 139);
/* oklch */ color: oklch(39.8% 0.164 305.5);
Tailwind
colors: {
  custom: {
    50: '#8f64ae',
    500: '#5d238b',
    950: '#000000',
  },
}
SCSS
$custom: #5d238b;
$custom-light: #8f64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d238b",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 273.462,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39809,
    "c": 0.16353,
    "h": 305.5
  },
  "luminance": 0.05393
}

Semantic roles & 50–950 ramp

primary
#5D238B
secondary
#7FB852
accent
#E3458B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D238B

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

Preview Lab → · Contrast checker → · Palette generator →

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