#5A2A93#5A2A93

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

Color values

HEX#5A2A93
RGBrgb(90, 42, 147)
HSLhsl(267, 56%, 37%)
HSVhsv(267, 71%, 58%)
CMYKcmyk(38.8%, 71.4%, 0%, 42.4%)
CIE-LABlab(29.25, 43.41, -49.47)
CIE-LCHlch(29.25, 65.81, 311.27°)
OKLaboklab(40.93% 0.0818 -0.1411)
OKLCHoklch(40.93% 0.163 300.1)
XYZxyz(10.3096, 5.9361, 28.2007)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2A93 #63932A
analogous
#2A2E93 #5A2A93 #8F2A93
triadic
#5A2A93 #935A2A #2A935A
tetradic
#5A2A93 #932A2E #63932A #2A938F
square
#5A2A93 #932A2E #63932A #2A938F
split-complementary
#5A2A93 #938F2A #2E932A
monochromatic
#200F34 #3D1C63 #5A2A93 #7738C3 #9765D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A2A93#FFFFFF#000000##FFFFFF
##5A2A931.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)
#004596
Deuteranopia (green-blind)
#004491
Tritanopia (blue-blind)
#4D435B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a2a93;
/* rgb */ color: rgb(90, 42, 147);
/* oklch */ color: oklch(40.9% 0.163 300.1);
Tailwind
colors: {
  custom: {
    50: '#8e68b3',
    500: '#5a2a93',
    950: '#000000',
  },
}
SCSS
$custom: #5a2a93;
$custom-light: #8e68b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2a93",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 147
  },
  "hsl": {
    "h": 267.429,
    "s": 55.556,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40931,
    "c": 0.16308,
    "h": 300.1
  },
  "luminance": 0.05936
}

Semantic roles & 50–950 ramp

primary
#5A2A93
secondary
#90B960
accent
#DF499A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2A93

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

Preview Lab → · Contrast checker → · Palette generator →

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