#5A249D#5A249D

#5A249D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.181 H 298.1°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#5A249D
RGBrgb(90, 36, 157)
HSLhsl(267, 63%, 38%)
HSVhsv(267, 77%, 62%)
CMYKcmyk(42.7%, 77.1%, 0%, 38.4%)
CIE-LABlab(29.08, 48.84, -55.86)
CIE-LCHlch(29.08, 74.20, 311.16°)
OKLaboklab(41.07% 0.0854 -0.1598)
OKLCHoklch(41.07% 0.181 298.1)
XYZxyz(10.9316, 5.8696, 32.4487)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A249D #679D24
analogous
#242A9D #5A249D #96249D
triadic
#5A249D #9D5A24 #249D5A
tetradic
#5A249D #9D242A #679D24 #249D96
square
#5A249D #9D242A #679D24 #249D96
split-complementary
#5A249D #9D9624 #2A9D24
monochromatic
#210D39 #3D196B #5A249D #772FCF #9761DB

Accessibility & contrast

On white

9.66
#5A249D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A249D
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A249D#FFFFFF#000000##FFFFFF
##5A249D1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#49445F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a249d;
/* rgb */ color: rgb(90, 36, 157);
/* oklch */ color: oklch(41.1% 0.181 298.1);
Tailwind
colors: {
  custom: {
    50: '#8f65bb',
    500: '#5a249d',
    950: '#000000',
  },
}
SCSS
$custom: #5a249d;
$custom-light: #8f65bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a249d",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 157
  },
  "hsl": {
    "h": 266.777,
    "s": 62.694,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41071,
    "c": 0.18121,
    "h": 298.1
  },
  "luminance": 0.0587
}

Semantic roles & 50–950 ramp

primary
#5A249D
secondary
#94C05D
accent
#E6429D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A249D

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

Preview Lab → · Contrast checker → · Palette generator →

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