#5A249F#5A249F

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

Color values

HEX#5A249F
RGBrgb(90, 36, 159)
HSLhsl(266, 63%, 38%)
HSVhsv(266, 77%, 62%)
CMYKcmyk(43.4%, 77.4%, 0%, 37.6%)
CIE-LABlab(29.26, 49.35, -56.79)
CIE-LCHlch(29.26, 75.24, 310.99°)
OKLaboklab(41.25% 0.0849 -0.1626)
OKLCHoklch(41.25% 0.183 297.6)
XYZxyz(11.1037, 5.9384, 33.3554)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A249F #699F24
analogous
#242C9F #5A249F #97249F
triadic
#5A249F #9F5A24 #249F5A
tetradic
#5A249F #9F242C #699F24 #249F97
square
#5A249F #9F242C #699F24 #249F97
split-complementary
#5A249F #9F9724 #2C9F24
monochromatic
#220D3B #3E196D #5A249F #7630D0 #9762DB

Accessibility & contrast

On white

9.60
#5A249F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5A249F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A249F
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A249F#FFFFFF#000000##FFFFFF
##5A249F1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#484560
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a249f;
/* rgb */ color: rgb(90, 36, 159);
/* oklch */ color: oklch(41.2% 0.183 297.6);
Tailwind
colors: {
  custom: {
    50: '#8f65bc',
    500: '#5a249f',
    950: '#000000',
  },
}
SCSS
$custom: #5a249f;
$custom-light: #8f65bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a249f",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 159
  },
  "hsl": {
    "h": 266.341,
    "s": 63.077,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41248,
    "c": 0.18338,
    "h": 297.6
  },
  "luminance": 0.05939
}

Semantic roles & 50–950 ramp

primary
#5A249F
secondary
#95C15E
accent
#E6429E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A249F

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

Preview Lab → · Contrast checker → · Palette generator →

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