#5A249A#5A249A

#5A249A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.178 H 299.0°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#5A249A
RGBrgb(90, 36, 154)
HSLhsl(267, 62%, 37%)
HSVhsv(267, 77%, 60%)
CMYKcmyk(41.6%, 76.6%, 0%, 39.6%)
CIE-LABlab(28.82, 48.07, -54.46)
CIE-LCHlch(28.82, 72.64, 311.44°)
OKLaboklab(40.81% 0.0862 -0.1557)
OKLCHoklch(40.81% 0.178 299)
XYZxyz(10.6786, 5.7684, 31.1164)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A249A #649A24
analogous
#24299A #5A249A #95249A
triadic
#5A249A #9A5A24 #249A5A
tetradic
#5A249A #9A2429 #649A24 #249A95
square
#5A249A #9A2429 #649A24 #249A95
split-complementary
#5A249A #9A9524 #299A24
monochromatic
#200D37 #3D1868 #5A249A #7730CC #975FDA

Accessibility & contrast

On white

9.75
#5A249A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5A249A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A249A
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A249A#FFFFFF#000000##FFFFFF
##5A249A1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a249a;
/* rgb */ color: rgb(90, 36, 154);
/* oklch */ color: oklch(40.8% 0.178 299.0);
Tailwind
colors: {
  custom: {
    50: '#8f65b9',
    500: '#5a249a',
    950: '#000000',
  },
}
SCSS
$custom: #5a249a;
$custom-light: #8f65b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a249a",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 154
  },
  "hsl": {
    "h": 267.458,
    "s": 62.105,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40808,
    "c": 0.17796,
    "h": 299
  },
  "luminance": 0.05769
}

Semantic roles & 50–950 ramp

primary
#5A249A
secondary
#91BF5B
accent
#E5439B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A249A

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

Preview Lab → · Contrast checker → · Palette generator →

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