#5A248A#5A248A

#5A248A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.161 H 304.0°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#5A248A
RGBrgb(90, 36, 138)
HSLhsl(272, 59%, 34%)
HSVhsv(272, 74%, 54%)
CMYKcmyk(34.8%, 73.9%, 0%, 45.9%)
CIE-LABlab(27.49, 44.04, -46.76)
CIE-LCHlch(27.49, 64.23, 313.28°)
OKLaboklab(39.46% 0.0898 -0.1331)
OKLCHoklch(39.46% 0.161 304)
XYZxyz(9.4337, 5.2704, 24.5601)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A248A #548A24
analogous
#27248A #5A248A #8A2487
triadic
#5A248A #8A5A24 #248A5A
tetradic
#5A248A #8A2724 #548A24 #24878A
square
#5A248A #8A2724 #548A24 #24878A
split-complementary
#5A248A #878A24 #248A27
monochromatic
#1B0B29 #3A1759 #5A248A #7A31BB #9856D3

Accessibility & contrast

On white

10.22
#5A248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5A248A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A248A
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A248A#FFFFFF#000000##FFFFFF
##5A248A1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#513C55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a248a;
/* rgb */ color: rgb(90, 36, 138);
/* oklch */ color: oklch(39.5% 0.161 304.0);
Tailwind
colors: {
  custom: {
    50: '#8d64ad',
    500: '#5a248a',
    950: '#000000',
  },
}
SCSS
$custom: #5a248a;
$custom-light: #8d64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a248a",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 271.765,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39456,
    "c": 0.16051,
    "h": 304
  },
  "luminance": 0.0527
}

Semantic roles & 50–950 ramp

primary
#5A248A
secondary
#82B753
accent
#E2468F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5A248A

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

Preview Lab → · Contrast checker → · Palette generator →

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