#5A206F#5A206F

#5A206F is a dark, vivid purple. Relative luminance 0.044; OKLCH L 36.9% C 0.137 H 315.7°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#5A206F
RGBrgb(90, 32, 111)
HSLhsl(284, 55%, 28%)
HSVhsv(284, 71%, 44%)
CMYKcmyk(18.9%, 71.2%, 0%, 56.5%)
CIE-LABlab(24.81, 39.52, -34.01)
CIE-LCHlch(24.81, 52.14, 319.28°)
OKLaboklab(36.91% 0.0979 -0.0956)
OKLCHoklch(36.91% 0.137 315.7)
XYZxyz(7.6018, 4.3547, 15.4759)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A206F #356F20
analogous
#33206F #5A206F #6F205C
triadic
#5A206F #6F5A20 #206F5A
tetradic
#5A206F #6F3320 #356F20 #205C6F
square
#5A206F #6F3320 #356F20 #205C6F
split-complementary
#5A206F #5C6F20 #206F33
monochromatic
#130718 #33123F #5A206F #812E9F #A441C8

Accessibility & contrast

On white

11.23
#5A206F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5A206F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A206F
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A206F#FFFFFF#000000##FFFFFF
##5A206F1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003771
Deuteranopia (green-blind)
#1F3C6D
Tritanopia (blue-blind)
#592F45
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a206f;
/* rgb */ color: rgb(90, 32, 111);
/* oklch */ color: oklch(36.9% 0.137 315.7);
Tailwind
colors: {
  custom: {
    50: '#8b6199',
    500: '#5a206f',
    950: '#000000',
  },
}
SCSS
$custom: #5a206f;
$custom-light: #8b6199;
$custom-dark: #000000;
JSON
{
  "hex": "#5a206f",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 111
  },
  "hsl": {
    "h": 284.051,
    "s": 55.245,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36908,
    "c": 0.13683,
    "h": 315.7
  },
  "luminance": 0.04354
}

Semantic roles & 50–950 ramp

primary
#5A206F
secondary
#60A348
accent
#DF4971
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #5A206F

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

Preview Lab → · Contrast checker → · Palette generator →

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