#5A248C#5A248C

#5A248C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.163 H 303.3°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#5A248C
RGBrgb(90, 36, 140)
HSLhsl(271, 59%, 35%)
HSVhsv(271, 74%, 55%)
CMYKcmyk(35.7%, 74.3%, 0%, 45.1%)
CIE-LABlab(27.65, 44.53, -47.74)
CIE-LCHlch(27.65, 65.29, 313.01°)
OKLaboklab(39.62% 0.0894 -0.136)
OKLCHoklch(39.62% 0.163 303.3)
XYZxyz(9.5798, 5.3289, 25.3297)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A248C #568C24
analogous
#26248C #5A248C #8C248A
triadic
#5A248C #8C5A24 #248C5A
tetradic
#5A248C #8C2624 #568C24 #248A8C
square
#5A248C #8C2624 #568C24 #248A8C
split-complementary
#5A248C #8A8C24 #248C26
monochromatic
#1B0B2B #3B175B #5A248C #7931BD #9857D4

Accessibility & contrast

On white

10.17
#5A248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A248C
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A248C#FFFFFF#000000##FFFFFF
##5A248C1.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#503D56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a248c;
/* rgb */ color: rgb(90, 36, 140);
/* oklch */ color: oklch(39.6% 0.163 303.3);
Tailwind
colors: {
  custom: {
    50: '#8d64ae',
    500: '#5a248c',
    950: '#000000',
  },
}
SCSS
$custom: #5a248c;
$custom-light: #8d64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5a248c",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 271.154,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3962,
    "c": 0.1627,
    "h": 303.3
  },
  "luminance": 0.05329
}

Semantic roles & 50–950 ramp

primary
#5A248C
secondary
#84B854
accent
#E24691
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5A248C

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

Preview Lab → · Contrast checker → · Palette generator →

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