#5A107E#5A107E

#5A107E is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.169 H 310.6°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#5A107E
RGBrgb(90, 16, 126)
HSLhsl(280, 77%, 28%)
HSVhsv(280, 87%, 49%)
CMYKcmyk(28.6%, 87.3%, 0%, 50.6%)
CIE-LABlab(23.84, 48.92, -45.17)
CIE-LCHlch(23.84, 66.58, 317.28°)
OKLaboklab(36.58% 0.1101 -0.1282)
OKLCHoklch(36.58% 0.169 310.6)
XYZxyz(8.1669, 4.0508, 20.0863)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A107E #347E10
analogous
#23107E #5A107E #7E106B
triadic
#5A107E #7E5A10 #107E5A
tetradic
#5A107E #7E2310 #347E10 #106B7E
square
#5A107E #7E2310 #347E10 #106B7E
split-complementary
#5A107E #6B7E10 #107E23
monochromatic
#13031B #330948 #5A107E #8117B4 #A525E3

Accessibility & contrast

On white

11.60
#5A107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5A107E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A107E
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A107E#FFFFFF#000000##FFFFFF
##5A107E1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#552E49
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a107e;
/* rgb */ color: rgb(90, 16, 126);
/* oklch */ color: oklch(36.6% 0.169 310.6);
Tailwind
colors: {
  custom: {
    50: '#8d5ba4',
    500: '#5a107e',
    950: '#000000',
  },
}
SCSS
$custom: #5a107e;
$custom-light: #8d5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a107e",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 280.364,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36584,
    "c": 0.16903,
    "h": 310.6
  },
  "luminance": 0.04051
}

Semantic roles & 50–950 ramp

primary
#5A107E
secondary
#5FB436
accent
#F43473
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A107E

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

Preview Lab → · Contrast checker → · Palette generator →

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