#5A2086#5A2086

#5A2086 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.161 H 306.0°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#5A2086
RGBrgb(90, 32, 134)
HSLhsl(274, 61%, 33%)
HSVhsv(274, 76%, 53%)
CMYKcmyk(32.8%, 76.1%, 0%, 47.5%)
CIE-LABlab(26.53, 44.88, -45.83)
CIE-LCHlch(26.53, 64.14, 314.40°)
OKLaboklab(38.67% 0.0946 -0.1303)
OKLCHoklch(38.67% 0.161 306)
XYZxyz(9.0351, 4.9280, 23.0249)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2086 #4C8620
analogous
#272086 #5A2086 #86207F
triadic
#5A2086 #865A20 #20865A
tetradic
#5A2086 #862720 #4C8620 #207F86
square
#5A2086 #862720 #4C8620 #207F86
split-complementary
#5A2086 #7F8620 #208627
monochromatic
#180823 #391455 #5A2086 #7B2CB7 #9A4CD4

Accessibility & contrast

On white

10.58
#5A2086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5A2086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2086
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2086#FFFFFF#000000##FFFFFF
##5A20861.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#003F84
Tritanopia (blue-blind)
#523951
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a2086;
/* rgb */ color: rgb(90, 32, 134);
/* oklch */ color: oklch(38.7% 0.161 306.0);
Tailwind
colors: {
  custom: {
    50: '#8d62aa',
    500: '#5a2086',
    950: '#000000',
  },
}
SCSS
$custom: #5a2086;
$custom-light: #8d62aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2086",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 134
  },
  "hsl": {
    "h": 274.118,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38674,
    "c": 0.16104,
    "h": 306
  },
  "luminance": 0.04928
}

Semantic roles & 50–950 ramp

primary
#5A2086
secondary
#79B74B
accent
#E54389
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5A2086

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

Preview Lab → · Contrast checker → · Palette generator →

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