#5A249B#5A249B

#5A249B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.179 H 298.7°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#5A249B
RGBrgb(90, 36, 155)
HSLhsl(267, 62%, 37%)
HSVhsv(267, 77%, 61%)
CMYKcmyk(41.9%, 76.8%, 0%, 39.2%)
CIE-LABlab(28.91, 48.33, -54.93)
CIE-LCHlch(28.91, 73.16, 311.34°)
OKLaboklab(40.89% 0.0859 -0.1571)
OKLCHoklch(40.89% 0.179 298.7)
XYZxyz(10.7622, 5.8018, 31.5568)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A249B #659B24
analogous
#24299B #5A249B #96249B
triadic
#5A249B #9B5A24 #249B5A
tetradic
#5A249B #9B2429 #659B24 #249B96
square
#5A249B #9B2429 #659B24 #249B96
split-complementary
#5A249B #9B9624 #299B24
monochromatic
#200D38 #3D1869 #5A249B #7730CD #975FDA

Accessibility & contrast

On white

9.72
#5A249B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5A249B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A249B
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A249B#FFFFFF#000000##FFFFFF
##5A249B1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#4A435E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a249b;
/* rgb */ color: rgb(90, 36, 155);
/* oklch */ color: oklch(40.9% 0.179 298.7);
Tailwind
colors: {
  custom: {
    50: '#8f65b9',
    500: '#5a249b',
    950: '#000000',
  },
}
SCSS
$custom: #5a249b;
$custom-light: #8f65b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a249b",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 155
  },
  "hsl": {
    "h": 267.227,
    "s": 62.304,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40895,
    "c": 0.17904,
    "h": 298.7
  },
  "luminance": 0.05802
}

Semantic roles & 50–950 ramp

primary
#5A249B
secondary
#92BF5C
accent
#E5429B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A249B

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

Preview Lab → · Contrast checker → · Palette generator →

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