#5D248D#5D248D

#5D248D is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.164 H 304.7°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#5D248D
RGBrgb(93, 36, 141)
HSLhsl(273, 59%, 35%)
HSVhsv(273, 74%, 55%)
CMYKcmyk(34%, 74.5%, 0%, 44.7%)
CIE-LABlab(28.15, 45.38, -47.54)
CIE-LCHlch(28.15, 65.72, 313.67°)
OKLaboklab(40.08% 0.0936 -0.1353)
OKLCHoklch(40.08% 0.164 304.7)
XYZxyz(9.9517, 5.5120, 25.7338)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D248D #548D24
analogous
#28248D #5D248D #8D2489
triadic
#5D248D #8D5D24 #248D5D
tetradic
#5D248D #8D2824 #548D24 #24898D
square
#5D248D #8D2824 #548D24 #24898D
split-complementary
#5D248D #898D24 #248D28
monochromatic
#1D0B2B #3D185C #5D248D #7D30BE #9B57D4

Accessibility & contrast

On white

9.99
#5D248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5D248D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D248D
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D248D#FFFFFF#000000##FFFFFF
##5D248D1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#543D56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d248d;
/* rgb */ color: rgb(93, 36, 141);
/* oklch */ color: oklch(40.1% 0.164 304.7);
Tailwind
colors: {
  custom: {
    50: '#9064af',
    500: '#5d248d',
    950: '#000000',
  },
}
SCSS
$custom: #5d248d;
$custom-light: #9064af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d248d",
  "rgb": {
    "r": 93,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 272.571,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40084,
    "c": 0.16447,
    "h": 304.7
  },
  "luminance": 0.05512
}

Semantic roles & 50–950 ramp

primary
#5D248D
secondary
#82B854
accent
#E3458D
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D248D

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

Preview Lab → · Contrast checker → · Palette generator →

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