#5A248B#5A248B

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

Color values

HEX#5A248B
RGBrgb(90, 36, 139)
HSLhsl(271, 59%, 34%)
HSVhsv(271, 74%, 55%)
CMYKcmyk(35.3%, 74.1%, 0%, 45.5%)
CIE-LABlab(27.57, 44.28, -47.25)
CIE-LCHlch(27.57, 64.76, 313.14°)
OKLaboklab(39.54% 0.0896 -0.1345)
OKLCHoklch(39.54% 0.162 303.7)
XYZxyz(9.5064, 5.2995, 24.9432)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A248B #558B24
analogous
#26248B #5A248B #8B2489
triadic
#5A248B #8B5A24 #248B5A
tetradic
#5A248B #8B2624 #558B24 #24898B
square
#5A248B #8B2624 #558B24 #24898B
split-complementary
#5A248B #898B24 #248B26
monochromatic
#1B0B2A #3B175A #5A248B #7931BC #9856D3

Accessibility & contrast

On white

10.20
#5A248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5A248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A248B
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A248B#FFFFFF#000000##FFFFFF
##5A248B1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#503D55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a248b;
/* rgb */ color: rgb(90, 36, 139);
/* oklch */ color: oklch(39.5% 0.162 303.7);
Tailwind
colors: {
  custom: {
    50: '#8d64ae',
    500: '#5a248b',
    950: '#000000',
  },
}
SCSS
$custom: #5a248b;
$custom-light: #8d64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5a248b",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 271.456,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39538,
    "c": 0.16161,
    "h": 303.7
  },
  "luminance": 0.05299
}

Semantic roles & 50–950 ramp

primary
#5A248B
secondary
#83B753
accent
#E24690
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5A248B

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

Preview Lab → · Contrast checker → · Palette generator →

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