#5D247E#5D247E

#5D247E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.148 H 310.3°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#5D247E
RGBrgb(93, 36, 126)
HSLhsl(278, 56%, 32%)
HSVhsv(278, 71%, 49%)
CMYKcmyk(26.2%, 71.4%, 0%, 50.6%)
CIE-LABlab(27.01, 41.77, -40.01)
CIE-LCHlch(27.01, 57.84, 316.23°)
OKLaboklab(38.91% 0.0959 -0.1131)
OKLCHoklch(38.91% 0.148 310.3)
XYZxyz(8.9102, 5.0955, 20.2488)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D247E #457E24
analogous
#30247E #5D247E #7E2472
triadic
#5D247E #7E5D24 #247E5D
tetradic
#5D247E #7E3024 #457E24 #24727E
square
#5D247E #7E3024 #457E24 #24727E
split-complementary
#5D247E #727E24 #247E30
monochromatic
#17091F #3A164E #5D247E #8032AE #9F50CD

Accessibility & contrast

On white

10.40
#5D247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5D247E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D247E
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D247E#FFFFFF#000000##FFFFFF
##5D247E1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#16417C
Tritanopia (blue-blind)
#59374E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d247e;
/* rgb */ color: rgb(93, 36, 126);
/* oklch */ color: oklch(38.9% 0.148 310.3);
Tailwind
colors: {
  custom: {
    50: '#8e64a4',
    500: '#5d247e',
    950: '#000000',
  },
}
SCSS
$custom: #5d247e;
$custom-light: #8e64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d247e",
  "rgb": {
    "r": 93,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 278,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38912,
    "c": 0.14833,
    "h": 310.3
  },
  "luminance": 0.05095
}

Semantic roles & 50–950 ramp

primary
#5D247E
secondary
#72B04E
accent
#DF4980
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5D247E

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

Preview Lab → · Contrast checker → · Palette generator →

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