#5D248E#5D248E

#5D248E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.166 H 304.3°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#5D248E
RGBrgb(93, 36, 142)
HSLhsl(272, 60%, 35%)
HSVhsv(272, 75%, 56%)
CMYKcmyk(34.5%, 74.6%, 0%, 44.3%)
CIE-LABlab(28.23, 45.62, -48.03)
CIE-LCHlch(28.23, 66.24, 313.53°)
OKLaboklab(40.17% 0.0934 -0.1367)
OKLCHoklch(40.17% 0.166 304.3)
XYZxyz(10.0264, 5.5419, 26.1274)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D248E #558E24
analogous
#28248E #5D248E #8E248A
triadic
#5D248E #8E5D24 #248E5D
tetradic
#5D248E #8E2824 #558E24 #248A8E
square
#5D248E #8E2824 #558E24 #248A8E
split-complementary
#5D248E #8A8E24 #248E28
monochromatic
#1D0B2C #3D185D #5D248E #7D30BF #9B58D5

Accessibility & contrast

On white

9.96
#5D248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5D248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D248E
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D248E#FFFFFF#000000##FFFFFF
##5D248E1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#543E57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d248e;
/* rgb */ color: rgb(93, 36, 142);
/* oklch */ color: oklch(40.2% 0.166 304.3);
Tailwind
colors: {
  custom: {
    50: '#9064b0',
    500: '#5d248e',
    950: '#000000',
  },
}
SCSS
$custom: #5d248e;
$custom-light: #9064b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d248e",
  "rgb": {
    "r": 93,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 272.264,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40166,
    "c": 0.16554,
    "h": 304.3
  },
  "luminance": 0.05542
}

Semantic roles & 50–950 ramp

primary
#5D248E
secondary
#83B955
accent
#E3458E
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D248E

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

Preview Lab → · Contrast checker → · Palette generator →

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