#5C248B#5C248B

#5C248B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.162 H 304.8°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#5C248B
RGBrgb(92, 36, 139)
HSLhsl(273, 59%, 34%)
HSVhsv(273, 74%, 55%)
CMYKcmyk(33.8%, 74.1%, 0%, 45.5%)
CIE-LABlab(27.85, 44.69, -46.79)
CIE-LCHlch(27.85, 64.70, 313.68°)
OKLaboklab(39.79% 0.0925 -0.1331)
OKLCHoklch(39.79% 0.162 304.8)
XYZxyz(9.7037, 5.4012, 24.9524)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C248B #538B24
analogous
#28248B #5C248B #8B2487
triadic
#5C248B #8B5C24 #248B5C
tetradic
#5C248B #8B2824 #538B24 #24878B
square
#5C248B #8B2824 #538B24 #24878B
split-complementary
#5C248B #878B24 #248B28
monochromatic
#1C0B2A #3C175A #5C248B #7C31BC #9A56D3

Accessibility & contrast

On white

10.10
#5C248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5C248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C248B
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C248B#FFFFFF#000000##FFFFFF
##5C248B1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c248b;
/* rgb */ color: rgb(92, 36, 139);
/* oklch */ color: oklch(39.8% 0.162 304.8);
Tailwind
colors: {
  custom: {
    50: '#8f64ae',
    500: '#5c248b',
    950: '#000000',
  },
}
SCSS
$custom: #5c248b;
$custom-light: #8f64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c248b",
  "rgb": {
    "r": 92,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 272.621,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39794,
    "c": 0.16207,
    "h": 304.8
  },
  "luminance": 0.05401
}

Semantic roles & 50–950 ramp

primary
#5C248B
secondary
#81B753
accent
#E2468D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C248B

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

Preview Lab → · Contrast checker → · Palette generator →

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