#5D247B#5D247B

#5D247B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.145 H 311.6°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#5D247B
RGBrgb(93, 36, 123)
HSLhsl(279, 55%, 31%)
HSVhsv(279, 71%, 48%)
CMYKcmyk(24.4%, 70.7%, 0%, 51.8%)
CIE-LABlab(26.79, 41.07, -38.46)
CIE-LCHlch(26.79, 56.27, 316.87°)
OKLaboklab(38.69% 0.0963 -0.1086)
OKLCHoklch(38.69% 0.145 311.6)
XYZxyz(8.7196, 5.0192, 19.2445)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D247B #427B24
analogous
#31247B #5D247B #7B246D
triadic
#5D247B #7B5D24 #247B5D
tetradic
#5D247B #7B3124 #427B24 #246D7B
square
#5D247B #7B3124 #427B24 #246D7B
split-complementary
#5D247B #6D7B24 #247B31
monochromatic
#15081C #39164C #5D247B #8132AA #A04ECB

Accessibility & contrast

On white

10.48
#5D247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D247B
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D247B#FFFFFF#000000##FFFFFF
##5D247B1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7E
Deuteranopia (green-blind)
#1A4079
Tritanopia (blue-blind)
#59364C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d247b;
/* rgb */ color: rgb(93, 36, 123);
/* oklch */ color: oklch(38.7% 0.145 311.6);
Tailwind
colors: {
  custom: {
    50: '#8e64a2',
    500: '#5d247b',
    950: '#000000',
  },
}
SCSS
$custom: #5d247b;
$custom-light: #8e64a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d247b",
  "rgb": {
    "r": 93,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 279.31,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38689,
    "c": 0.14511,
    "h": 311.6
  },
  "luminance": 0.05019
}

Semantic roles & 50–950 ramp

primary
#5D247B
secondary
#6EAD4D
accent
#DE4A7D
background
#F9F6FA
surface
#F1EBF3
border
#CBC6CD
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5D247B

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

Preview Lab → · Contrast checker → · Palette generator →

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