#5C248F#5C248F

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

Color values

HEX#5C248F
RGBrgb(92, 36, 143)
HSLhsl(271, 60%, 35%)
HSVhsv(271, 75%, 56%)
CMYKcmyk(35.7%, 74.8%, 0%, 43.9%)
CIE-LABlab(28.17, 45.67, -48.75)
CIE-LCHlch(28.17, 66.80, 313.13°)
OKLaboklab(40.12% 0.0917 -0.1388)
OKLCHoklch(40.12% 0.166 303.4)
XYZxyz(10.0013, 5.5202, 26.5199)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C248F #578F24
analogous
#26248F #5C248F #8F248D
triadic
#5C248F #8F5C24 #248F5C
tetradic
#5C248F #8F2624 #578F24 #248D8F
square
#5C248F #8F2624 #578F24 #248D8F
split-complementary
#5C248F #8D8F24 #248F26
monochromatic
#1D0B2D #3D185E #5C248F #7B30C0 #9A58D5

Accessibility & contrast

On white

9.98
#5C248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5C248F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C248F
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C248F#FFFFFF#000000##FFFFFF
##5C248F1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#523E57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5c248f;
/* rgb */ color: rgb(92, 36, 143);
/* oklch */ color: oklch(40.1% 0.166 303.4);
Tailwind
colors: {
  custom: {
    50: '#8f64b1',
    500: '#5c248f',
    950: '#000000',
  },
}
SCSS
$custom: #5c248f;
$custom-light: #8f64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c248f",
  "rgb": {
    "r": 92,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 271.402,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4012,
    "c": 0.1664,
    "h": 303.4
  },
  "luminance": 0.0552
}

Semantic roles & 50–950 ramp

primary
#5C248F
secondary
#85B955
accent
#E34590
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C248F

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

Preview Lab → · Contrast checker → · Palette generator →

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