#5A107A#5A107A

#5A107A is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.2% C 0.165 H 312.3°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#5A107A
RGBrgb(90, 16, 122)
HSLhsl(282, 77%, 27%)
HSVhsv(282, 87%, 48%)
CMYKcmyk(26.2%, 86.9%, 0%, 52.2%)
CIE-LABlab(23.50, 48.06, -43.17)
CIE-LCHlch(23.50, 64.60, 318.07°)
OKLaboklab(36.25% 0.1112 -0.1224)
OKLCHoklch(36.25% 0.165 312.3)
XYZxyz(7.9139, 3.9496, 18.7540)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A107A #307A10
analogous
#25107A #5A107A #7A1065
triadic
#5A107A #7A5A10 #107A5A
tetradic
#5A107A #7A2510 #307A10 #10657A
square
#5A107A #7A2510 #307A10 #10657A
split-complementary
#5A107A #657A10 #107A25
monochromatic
#14041B #320944 #5A107A #8217B0 #A822E2

Accessibility & contrast

On white

11.73
#5A107A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5A107A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A107A
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A107A#FFFFFF#000000##FFFFFF
##5A107A1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#562C47
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a107a;
/* rgb */ color: rgb(90, 16, 122);
/* oklch */ color: oklch(36.2% 0.165 312.3);
Tailwind
colors: {
  custom: {
    50: '#8d5aa1',
    500: '#5a107a',
    950: '#000000',
  },
}
SCSS
$custom: #5a107a;
$custom-light: #8d5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a107a",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 122
  },
  "hsl": {
    "h": 281.887,
    "s": 76.812,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36248,
    "c": 0.16537,
    "h": 312.3
  },
  "luminance": 0.03949
}

Semantic roles & 50–950 ramp

primary
#5A107A
secondary
#5AB135
accent
#F3346E
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A107A

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

Preview Lab → · Contrast checker → · Palette generator →

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