#5D237C#5D237C

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

Color values

HEX#5D237C
RGBrgb(93, 35, 124)
HSLhsl(279, 56%, 31%)
HSVhsv(279, 72%, 49%)
CMYKcmyk(25%, 71.8%, 0%, 51.4%)
CIE-LABlab(26.69, 41.78, -39.26)
CIE-LCHlch(26.69, 57.33, 316.78°)
OKLaboklab(38.64% 0.0973 -0.1109)
OKLCHoklch(38.64% 0.148 311.3)
XYZxyz(8.7526, 4.9847, 19.5659)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D237C #427C23
analogous
#30237C #5D237C #7C236E
triadic
#5D237C #7C5D23 #237C5D
tetradic
#5D237C #7C3023 #427C23 #236E7C
square
#5D237C #7C3023 #427C23 #236E7C
split-complementary
#5D237C #6E7C23 #237C30
monochromatic
#15081D #39164C #5D237C #8130AC #A04DCD

Accessibility & contrast

On white

10.52
#5D237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D237C
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D237C#FFFFFF#000000##FFFFFF
##5D237C1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#17407A
Tritanopia (blue-blind)
#59364D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d237c;
/* rgb */ color: rgb(93, 35, 124);
/* oklch */ color: oklch(38.6% 0.148 311.3);
Tailwind
colors: {
  custom: {
    50: '#8e63a2',
    500: '#5d237c',
    950: '#000000',
  },
}
SCSS
$custom: #5d237c;
$custom-light: #8e63a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d237c",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 279.101,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38642,
    "c": 0.14755,
    "h": 311.3
  },
  "luminance": 0.04984
}

Semantic roles & 50–950 ramp

primary
#5D237C
secondary
#6EAF4C
accent
#DF497D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5D237C

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

Preview Lab → · Contrast checker → · Palette generator →

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