#5D248B#5D248B

#5D248B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.162 H 305.4°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#5D248B
RGBrgb(93, 36, 139)
HSLhsl(273, 59%, 34%)
HSVhsv(273, 74%, 55%)
CMYKcmyk(33.1%, 74.1%, 0%, 45.5%)
CIE-LABlab(27.99, 44.89, -46.56)
CIE-LCHlch(27.99, 64.67, 313.95°)
OKLaboklab(39.92% 0.094 -0.1324)
OKLCHoklch(39.92% 0.162 305.4)
XYZxyz(9.8042, 5.4531, 24.9571)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D248B #528B24
analogous
#2A248B #5D248B #8B2486
triadic
#5D248B #8B5D24 #248B5D
tetradic
#5D248B #8B2A24 #528B24 #24868B
square
#5D248B #8B2A24 #528B24 #24868B
split-complementary
#5D248B #868B24 #248B2A
monochromatic
#1C0B2A #3C175A #5D248B #7E31BC #9B56D3

Accessibility & contrast

On white

10.04
#5D248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5D248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D248B
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D248B#FFFFFF#000000##FFFFFF
##5D248B1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#553D55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d248b;
/* rgb */ color: rgb(93, 36, 139);
/* oklch */ color: oklch(39.9% 0.162 305.4);
Tailwind
colors: {
  custom: {
    50: '#8f64ae',
    500: '#5d248b',
    950: '#000000',
  },
}
SCSS
$custom: #5d248b;
$custom-light: #8f64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d248b",
  "rgb": {
    "r": 93,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 273.204,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39923,
    "c": 0.16232,
    "h": 305.4
  },
  "luminance": 0.05453
}

Semantic roles & 50–950 ramp

primary
#5D248B
secondary
#80B753
accent
#E2468C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D248B

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

Preview Lab → · Contrast checker → · Palette generator →

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