#5A249E#5A249E

#5A249E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.182 H 297.8°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#5A249E
RGBrgb(90, 36, 158)
HSLhsl(267, 63%, 38%)
HSVhsv(267, 77%, 62%)
CMYKcmyk(43%, 77.2%, 0%, 38%)
CIE-LABlab(29.17, 49.10, -56.33)
CIE-LCHlch(29.17, 74.72, 311.08°)
OKLaboklab(41.16% 0.0851 -0.1612)
OKLCHoklch(41.16% 0.182 297.8)
XYZxyz(11.0173, 5.9038, 32.9002)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A249E #689E24
analogous
#242B9E #5A249E #97249E
triadic
#5A249E #9E5A24 #249E5A
tetradic
#5A249E #9E242B #689E24 #249E97
square
#5A249E #9E242B #689E24 #249E97
split-complementary
#5A249E #9E9724 #2B9E24
monochromatic
#210D3A #3E196C #5A249E #762FD0 #9761DB

Accessibility & contrast

On white

9.63
#5A249E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5A249E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A249E
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A249E#FFFFFF#000000##FFFFFF
##5A249E1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#494560
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a249e;
/* rgb */ color: rgb(90, 36, 158);
/* oklch */ color: oklch(41.2% 0.182 297.8);
Tailwind
colors: {
  custom: {
    50: '#8f65bc',
    500: '#5a249e',
    950: '#000000',
  },
}
SCSS
$custom: #5a249e;
$custom-light: #8f65bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a249e",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 158
  },
  "hsl": {
    "h": 266.557,
    "s": 62.887,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4116,
    "c": 0.18229,
    "h": 297.8
  },
  "luminance": 0.05904
}

Semantic roles & 50–950 ramp

primary
#5A249E
secondary
#95C05E
accent
#E6429D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A249E

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

Preview Lab → · Contrast checker → · Palette generator →

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