#5A249C#5A249C

#5A249C is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.180 H 298.4°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#5A249C
RGBrgb(90, 36, 156)
HSLhsl(267, 63%, 38%)
HSVhsv(267, 77%, 61%)
CMYKcmyk(42.3%, 76.9%, 0%, 38.8%)
CIE-LABlab(28.99, 48.59, -55.40)
CIE-LCHlch(28.99, 73.69, 311.25°)
OKLaboklab(40.98% 0.0857 -0.1585)
OKLCHoklch(40.98% 0.18 298.4)
XYZxyz(10.8465, 5.8355, 32.0010)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A249C #669C24
analogous
#242A9C #5A249C #96249C
triadic
#5A249C #9C5A24 #249C5A
tetradic
#5A249C #9C242A #669C24 #249C96
square
#5A249C #9C242A #669C24 #249C96
split-complementary
#5A249C #9C9624 #2A9C24
monochromatic
#210D39 #3D196A #5A249C #772FCE #9760DA

Accessibility & contrast

On white

9.69
#5A249C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5A249C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A249C
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A249C#FFFFFF#000000##FFFFFF
##5A249C1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#4A445F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a249c;
/* rgb */ color: rgb(90, 36, 156);
/* oklch */ color: oklch(41.0% 0.180 298.4);
Tailwind
colors: {
  custom: {
    50: '#8f65ba',
    500: '#5a249c',
    950: '#000000',
  },
}
SCSS
$custom: #5a249c;
$custom-light: #8f65ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5a249c",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 156
  },
  "hsl": {
    "h": 267,
    "s": 62.5,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40983,
    "c": 0.18013,
    "h": 298.4
  },
  "luminance": 0.05836
}

Semantic roles & 50–950 ramp

primary
#5A249C
secondary
#93BF5C
accent
#E6429C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A249C

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

Preview Lab → · Contrast checker → · Palette generator →

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