#5A2A9C#5A2A9C

#5A2A9C is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.173 H 297.5°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#5A2A9C
RGBrgb(90, 42, 156)
HSLhsl(265, 58%, 39%)
HSVhsv(265, 73%, 61%)
CMYKcmyk(42.3%, 73.1%, 0%, 38.8%)
CIE-LABlab(29.98, 45.77, -53.78)
CIE-LCHlch(29.98, 70.62, 310.40°)
OKLaboklab(41.68% 0.0801 -0.1537)
OKLCHoklch(41.68% 0.173 297.5)
XYZxyz(11.0436, 6.2297, 32.0666)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2A9C #6C9C2A
analogous
#2A339C #5A2A9C #932A9C
triadic
#5A2A9C #9C5A2A #2A9C5A
tetradic
#5A2A9C #9C2A33 #6C9C2A #2A9C93
square
#5A2A9C #9C2A33 #6C9C2A #2A9C93
split-complementary
#5A2A9C #9C932A #339C2A
monochromatic
#22103C #3E1D6C #5A2A9C #7639CA #986AD7

Accessibility & contrast

On white

9.35
#5A2A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5A2A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2A9C
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2A9C#FFFFFF#000000##FFFFFF
##5A2A9C1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#00459A
Tritanopia (blue-blind)
#494760
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a2a9c;
/* rgb */ color: rgb(90, 42, 156);
/* oklch */ color: oklch(41.7% 0.173 297.5);
Tailwind
colors: {
  custom: {
    50: '#8f68ba',
    500: '#5a2a9c',
    950: '#000000',
  },
}
SCSS
$custom: #5a2a9c;
$custom-light: #8f68ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2a9c",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 265.263,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41682,
    "c": 0.17334,
    "h": 297.5
  },
  "luminance": 0.0623
}

Semantic roles & 50–950 ramp

primary
#5A2A9C
secondary
#98BD65
accent
#E147A0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A2A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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