#5A248D#5A248D

#5A248D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.164 H 303.0°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#5A248D
RGBrgb(90, 36, 141)
HSLhsl(271, 59%, 35%)
HSVhsv(271, 74%, 55%)
CMYKcmyk(36.2%, 74.5%, 0%, 44.7%)
CIE-LABlab(27.73, 44.78, -48.23)
CIE-LCHlch(27.73, 65.82, 312.88°)
OKLaboklab(39.7% 0.0892 -0.1374)
OKLCHoklch(39.7% 0.164 303)
XYZxyz(9.6539, 5.3585, 25.7198)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A248D #578D24
analogous
#25248D #5A248D #8D248C
triadic
#5A248D #8D5A24 #248D5A
tetradic
#5A248D #8D2524 #578D24 #248C8D
square
#5A248D #8D2524 #578D24 #248C8D
split-complementary
#5A248D #8C8D24 #248D25
monochromatic
#1C0B2B #3B185C #5A248D #7930BE #9757D4

Accessibility & contrast

On white

10.14
#5A248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A248D
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A248D#FFFFFF#000000##FFFFFF
##5A248D1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#503E56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a248d;
/* rgb */ color: rgb(90, 36, 141);
/* oklch */ color: oklch(39.7% 0.164 303.0);
Tailwind
colors: {
  custom: {
    50: '#8e64af',
    500: '#5a248d',
    950: '#000000',
  },
}
SCSS
$custom: #5a248d;
$custom-light: #8e64af;
$custom-dark: #000000;
JSON
{
  "hex": "#5a248d",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 270.857,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39702,
    "c": 0.1638,
    "h": 303
  },
  "luminance": 0.05358
}

Semantic roles & 50–950 ramp

primary
#5A248D
secondary
#85B854
accent
#E34592
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5A248D

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

Preview Lab → · Contrast checker → · Palette generator →

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