#5C248D#5C248D

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

Color values

HEX#5C248D
RGBrgb(92, 36, 141)
HSLhsl(272, 59%, 35%)
HSVhsv(272, 74%, 55%)
CMYKcmyk(34.8%, 74.5%, 0%, 44.7%)
CIE-LABlab(28.01, 45.18, -47.77)
CIE-LCHlch(28.01, 65.75, 313.40°)
OKLaboklab(39.96% 0.0921 -0.136)
OKLCHoklch(39.96% 0.164 304.1)
XYZxyz(9.8511, 5.4602, 25.7291)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C248D #558D24
analogous
#28248D #5C248D #8D248A
triadic
#5C248D #8D5C24 #248D5C
tetradic
#5C248D #8D2824 #558D24 #248A8D
square
#5C248D #8D2824 #558D24 #248A8D
split-complementary
#5C248D #8A8D24 #248D28
monochromatic
#1C0B2B #3C185C #5C248D #7C30BE #9A57D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C248D#FFFFFF#000000##FFFFFF
##5C248D1.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)
#004190
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#523D56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c248d;
/* rgb */ color: rgb(92, 36, 141);
/* oklch */ color: oklch(40.0% 0.164 304.1);
Tailwind
colors: {
  custom: {
    50: '#8f64af',
    500: '#5c248d',
    950: '#000000',
  },
}
SCSS
$custom: #5c248d;
$custom-light: #8f64af;
$custom-dark: #000000;
JSON
{
  "hex": "#5c248d",
  "rgb": {
    "r": 92,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 272,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39956,
    "c": 0.16424,
    "h": 304.1
  },
  "luminance": 0.0546
}

Semantic roles & 50–950 ramp

primary
#5C248D
secondary
#83B854
accent
#E3458F
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C248D

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

Preview Lab → · Contrast checker → · Palette generator →

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