#5A207F#5A207F

#5A207F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.154 H 308.6°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#5A207F
RGBrgb(90, 32, 127)
HSLhsl(277, 60%, 31%)
HSVhsv(277, 75%, 50%)
CMYKcmyk(29.1%, 74.8%, 0%, 50.2%)
CIE-LABlab(25.98, 43.21, -42.32)
CIE-LCHlch(25.98, 60.48, 315.59°)
OKLaboklab(38.11% 0.0959 -0.12)
OKLCHoklch(38.11% 0.154 308.6)
XYZxyz(8.5629, 4.7391, 20.5382)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A207F #457F20
analogous
#2B207F #5A207F #7F2074
triadic
#5A207F #7F5A20 #207F5A
tetradic
#5A207F #7F2B20 #457F20 #20747F
square
#5A207F #7F2B20 #457F20 #20747F
split-complementary
#5A207F #747F20 #207F2B
monochromatic
#15071D #37144E #5A207F #7D2CB0 #9C48D1

Accessibility & contrast

On white

10.78
#5A207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5A207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A207F
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A207F#FFFFFF#000000##FFFFFF
##5A207F1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#053E7D
Tritanopia (blue-blind)
#54364D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a207f;
/* rgb */ color: rgb(90, 32, 127);
/* oklch */ color: oklch(38.1% 0.154 308.6);
Tailwind
colors: {
  custom: {
    50: '#8d61a5',
    500: '#5a207f',
    950: '#000000',
  },
}
SCSS
$custom: #5a207f;
$custom-light: #8d61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a207f",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 276.632,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38112,
    "c": 0.15365,
    "h": 308.6
  },
  "luminance": 0.04739
}

Semantic roles & 50–950 ramp

primary
#5A207F
secondary
#72B249
accent
#E34582
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D050F
muted
#7D7A7F

Preview Lab

Preview with #5A207F

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

Preview Lab → · Contrast checker → · Palette generator →

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