#5A207D#5A207D

#5A207D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.152 H 309.4°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#5A207D
RGBrgb(90, 32, 125)
HSLhsl(277, 59%, 31%)
HSVhsv(277, 74%, 49%)
CMYKcmyk(28%, 74.4%, 0%, 51%)
CIE-LABlab(25.83, 42.73, -41.31)
CIE-LCHlch(25.83, 59.43, 315.97°)
OKLaboklab(37.96% 0.0963 -0.117)
OKLCHoklch(37.96% 0.152 309.4)
XYZxyz(8.4339, 4.6875, 19.8585)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A207D #437D20
analogous
#2B207D #5A207D #7D2071
triadic
#5A207D #7D5A20 #207D5A
tetradic
#5A207D #7D2B20 #437D20 #20717D
square
#5A207D #7D2B20 #437D20 #20717D
split-complementary
#5A207D #717D20 #207D2B
monochromatic
#14071C #37144C #5A207D #7D2CAE #9D47D0

Accessibility & contrast

On white

10.84
#5A207D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5A207D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A207D
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A207D#FFFFFF#000000##FFFFFF
##5A207D1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#0B3E7B
Tritanopia (blue-blind)
#55354C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a207d;
/* rgb */ color: rgb(90, 32, 125);
/* oklch */ color: oklch(38.0% 0.152 309.4);
Tailwind
colors: {
  custom: {
    50: '#8c61a3',
    500: '#5a207d',
    950: '#000000',
  },
}
SCSS
$custom: #5a207d;
$custom-light: #8c61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a207d",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 125
  },
  "hsl": {
    "h": 277.419,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37955,
    "c": 0.15153,
    "h": 309.4
  },
  "luminance": 0.04687
}

Semantic roles & 50–950 ramp

primary
#5A207D
secondary
#70B049
accent
#E24580
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #5A207D

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

Preview Lab → · Contrast checker → · Palette generator →

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