#5D247C#5D247C

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

Color values

HEX#5D247C
RGBrgb(93, 36, 124)
HSLhsl(279, 55%, 31%)
HSVhsv(279, 71%, 49%)
CMYKcmyk(25%, 71%, 0%, 51.4%)
CIE-LABlab(26.86, 41.30, -38.98)
CIE-LCHlch(26.86, 56.79, 316.65°)
OKLaboklab(38.76% 0.0962 -0.1101)
OKLCHoklch(38.76% 0.146 311.1)
XYZxyz(8.7825, 5.0444, 19.5759)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D247C #437C24
analogous
#31247C #5D247C #7C246F
triadic
#5D247C #7C5D24 #247C5D
tetradic
#5D247C #7C3124 #437C24 #246F7C
square
#5D247C #7C3124 #437C24 #246F7C
split-complementary
#5D247C #6F7C24 #247C31
monochromatic
#16081D #39164D #5D247C #8132AB #A04FCC

Accessibility & contrast

On white

10.45
#5D247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5D247C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D247C
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D247C#FFFFFF#000000##FFFFFF
##5D247C1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#19417A
Tritanopia (blue-blind)
#59374D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d247c;
/* rgb */ color: rgb(93, 36, 124);
/* oklch */ color: oklch(38.8% 0.146 311.1);
Tailwind
colors: {
  custom: {
    50: '#8e64a2',
    500: '#5d247c',
    950: '#000000',
  },
}
SCSS
$custom: #5d247c;
$custom-light: #8e64a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d247c",
  "rgb": {
    "r": 93,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 278.864,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38763,
    "c": 0.14618,
    "h": 311.1
  },
  "luminance": 0.05044
}

Semantic roles & 50–950 ramp

primary
#5D247C
secondary
#70AE4D
accent
#DE497E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5D247C

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

Preview Lab → · Contrast checker → · Palette generator →

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