#5D237B#5D237B

#5D237B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.146 H 311.7°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#5D237B
RGBrgb(93, 35, 123)
HSLhsl(280, 56%, 31%)
HSVhsv(280, 72%, 48%)
CMYKcmyk(24.4%, 71.5%, 0%, 51.8%)
CIE-LABlab(26.62, 41.54, -38.74)
CIE-LCHlch(26.62, 56.80, 317.00°)
OKLaboklab(38.57% 0.0974 -0.1094)
OKLCHoklch(38.57% 0.146 311.7)
XYZxyz(8.6897, 4.9595, 19.2346)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D237B #417B23
analogous
#31237B #5D237B #7B236D
triadic
#5D237B #7B5D23 #237B5D
tetradic
#5D237B #7B3123 #417B23 #236D7B
square
#5D237B #7B3123 #417B23 #236D7B
split-complementary
#5D237B #6D7B23 #237B31
monochromatic
#15081C #39154B #5D237B #8131AB #A14CCC

Accessibility & contrast

On white

10.54
#5D237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5D237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D237B
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D237B#FFFFFF#000000##FFFFFF
##5D237B1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#194079
Tritanopia (blue-blind)
#59364C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d237b;
/* rgb */ color: rgb(93, 35, 123);
/* oklch */ color: oklch(38.6% 0.146 311.7);
Tailwind
colors: {
  custom: {
    50: '#8e63a2',
    500: '#5d237b',
    950: '#000000',
  },
}
SCSS
$custom: #5d237b;
$custom-light: #8e63a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d237b",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 279.545,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38568,
    "c": 0.14648,
    "h": 311.7
  },
  "luminance": 0.04959
}

Semantic roles & 50–950 ramp

primary
#5D237B
secondary
#6DAE4C
accent
#DF497C
background
#F9F6FA
surface
#F1EBF3
border
#CBC6CD
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5D237B

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

Preview Lab → · Contrast checker → · Palette generator →

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