#5A207B#5A207B

#5A207B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.149 H 310.3°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#5A207B
RGBrgb(90, 32, 123)
HSLhsl(278, 59%, 30%)
HSVhsv(278, 74%, 48%)
CMYKcmyk(26.8%, 74%, 0%, 51.8%)
CIE-LABlab(25.67, 42.26, -40.29)
CIE-LCHlch(25.67, 58.39, 316.37°)
OKLaboklab(37.8% 0.0966 -0.114)
OKLCHoklch(37.8% 0.149 310.3)
XYZxyz(8.3074, 4.6369, 19.1924)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A207B #417B20
analogous
#2C207B #5A207B #7B206E
triadic
#5A207B #7B5A20 #207B5A
tetradic
#5A207B #7B2C20 #417B20 #206E7B
square
#5A207B #7B2C20 #417B20 #206E7B
split-complementary
#5A207B #6E7B20 #207B2C
monochromatic
#13071A #36134A #5A207B #7E2DAC #9D46CF

Accessibility & contrast

On white

10.90
#5A207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5A207B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A207B
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A207B#FFFFFF#000000##FFFFFF
##5A207B1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#0F3E79
Tritanopia (blue-blind)
#55344B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a207b;
/* rgb */ color: rgb(90, 32, 123);
/* oklch */ color: oklch(37.8% 0.149 310.3);
Tailwind
colors: {
  custom: {
    50: '#8c61a2',
    500: '#5a207b',
    950: '#000000',
  },
}
SCSS
$custom: #5a207b;
$custom-light: #8c61a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a207b",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 278.242,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.378,
    "c": 0.14942,
    "h": 310.3
  },
  "luminance": 0.04637
}

Semantic roles & 50–950 ramp

primary
#5A207B
secondary
#6DAE49
accent
#E2467E
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #5A207B

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

Preview Lab → · Contrast checker → · Palette generator →

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