#5C248A#5C248A

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

Color values

HEX#5C248A
RGBrgb(92, 36, 138)
HSLhsl(273, 59%, 34%)
HSVhsv(273, 74%, 54%)
CMYKcmyk(33.3%, 73.9%, 0%, 45.9%)
CIE-LABlab(27.77, 44.44, -46.30)
CIE-LCHlch(27.77, 64.17, 313.83°)
OKLaboklab(39.71% 0.0927 -0.1316)
OKLCHoklch(39.71% 0.161 305.1)
XYZxyz(9.6309, 5.3721, 24.5694)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C248A #528A24
analogous
#29248A #5C248A #8A2485
triadic
#5C248A #8A5C24 #248A5C
tetradic
#5C248A #8A2924 #528A24 #24858A
square
#5C248A #8A2924 #528A24 #24858A
split-complementary
#5C248A #858A24 #248A29
monochromatic
#1B0B29 #3C1759 #5C248A #7C31BB #9A56D3

Accessibility & contrast

On white

10.12
#5C248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5C248A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C248A
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C248A#FFFFFF#000000##FFFFFF
##5C248A1.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c248a;
/* rgb */ color: rgb(92, 36, 138);
/* oklch */ color: oklch(39.7% 0.161 305.1);
Tailwind
colors: {
  custom: {
    50: '#8f64ad',
    500: '#5c248a',
    950: '#000000',
  },
}
SCSS
$custom: #5c248a;
$custom-light: #8f64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5c248a",
  "rgb": {
    "r": 92,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 272.941,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39713,
    "c": 0.16099,
    "h": 305.1
  },
  "luminance": 0.05372
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C248A

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

Preview Lab → · Contrast checker → · Palette generator →

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