#5D248F#5D248F

#5D248F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.167 H 304.0°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#5D248F
RGBrgb(93, 36, 143)
HSLhsl(272, 60%, 35%)
HSVhsv(272, 75%, 56%)
CMYKcmyk(35%, 74.8%, 0%, 43.9%)
CIE-LABlab(28.31, 45.87, -48.52)
CIE-LCHlch(28.31, 66.77, 313.39°)
OKLaboklab(40.25% 0.0932 -0.1381)
OKLCHoklch(40.25% 0.167 304)
XYZxyz(10.1019, 5.5721, 26.5246)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D248F #568F24
analogous
#28248F #5D248F #8F248B
triadic
#5D248F #8F5D24 #248F5D
tetradic
#5D248F #8F2824 #568F24 #248B8F
square
#5D248F #8F2824 #568F24 #248B8F
split-complementary
#5D248F #8B8F24 #248F28
monochromatic
#1D0B2D #3D185E #5D248F #7D30C0 #9B58D5

Accessibility & contrast

On white

9.93
#5D248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D248F
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D248F#FFFFFF#000000##FFFFFF
##5D248F1.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#533E57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d248f;
/* rgb */ color: rgb(93, 36, 143);
/* oklch */ color: oklch(40.2% 0.167 304.0);
Tailwind
colors: {
  custom: {
    50: '#9064b1',
    500: '#5d248f',
    950: '#000000',
  },
}
SCSS
$custom: #5d248f;
$custom-light: #9064b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d248f",
  "rgb": {
    "r": 93,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 271.963,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40248,
    "c": 0.16661,
    "h": 304
  },
  "luminance": 0.05572
}

Semantic roles & 50–950 ramp

primary
#5D248F
secondary
#84B955
accent
#E3458F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D248F

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

Preview Lab → · Contrast checker → · Palette generator →

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