#5D248A#5D248A

#5D248A is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.161 H 305.7°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#5D248A
RGBrgb(93, 36, 138)
HSLhsl(274, 59%, 34%)
HSVhsv(274, 74%, 54%)
CMYKcmyk(32.6%, 73.9%, 0%, 45.9%)
CIE-LABlab(27.91, 44.64, -46.06)
CIE-LCHlch(27.91, 64.15, 314.10°)
OKLaboklab(39.84% 0.0941 -0.1309)
OKLCHoklch(39.84% 0.161 305.7)
XYZxyz(9.7315, 5.4240, 24.5741)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D248A #518A24
analogous
#2A248A #5D248A #8A2484
triadic
#5D248A #8A5D24 #248A5D
tetradic
#5D248A #8A2A24 #518A24 #24848A
square
#5D248A #8A2A24 #518A24 #24848A
split-complementary
#5D248A #848A24 #248A2A
monochromatic
#1C0B29 #3C1759 #5D248A #7E31BB #9C56D3

Accessibility & contrast

On white

10.07
#5D248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5D248A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D248A
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D248A#FFFFFF#000000##FFFFFF
##5D248A1.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#553C55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d248a;
/* rgb */ color: rgb(93, 36, 138);
/* oklch */ color: oklch(39.8% 0.161 305.7);
Tailwind
colors: {
  custom: {
    50: '#8f64ad',
    500: '#5d248a',
    950: '#000000',
  },
}
SCSS
$custom: #5d248a;
$custom-light: #8f64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d248a",
  "rgb": {
    "r": 93,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 273.529,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39843,
    "c": 0.16124,
    "h": 305.7
  },
  "luminance": 0.05424
}

Semantic roles & 50–950 ramp

primary
#5D248A
secondary
#7FB753
accent
#E2468B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D248A

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

Preview Lab → · Contrast checker → · Palette generator →

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