#5A107F#5A107F

#5A107F is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.7% C 0.170 H 310.3°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#5A107F
RGBrgb(90, 16, 127)
HSLhsl(280, 78%, 28%)
HSVhsv(280, 87%, 50%)
CMYKcmyk(29.1%, 87.4%, 0%, 50.2%)
CIE-LABlab(23.92, 49.13, -45.66)
CIE-LCHlch(23.92, 67.08, 317.10°)
OKLaboklab(36.67% 0.1098 -0.1297)
OKLCHoklch(36.67% 0.17 310.3)
XYZxyz(8.2317, 4.0767, 20.4278)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A107F #357F10
analogous
#22107F #5A107F #7F106C
triadic
#5A107F #7F5A10 #107F5A
tetradic
#5A107F #7F2210 #357F10 #106C7F
square
#5A107F #7F2210 #357F10 #106C7F
split-complementary
#5A107F #6C7F10 #107F22
monochromatic
#13031B #330949 #5A107F #8117B5 #A426E4

Accessibility & contrast

On white

11.57
#5A107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5A107F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A107F
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A107F#FFFFFF#000000##FFFFFF
##5A107F1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#552F4A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a107f;
/* rgb */ color: rgb(90, 16, 127);
/* oklch */ color: oklch(36.7% 0.170 310.3);
Tailwind
colors: {
  custom: {
    50: '#8d5ba5',
    500: '#5a107f',
    950: '#000000',
  },
}
SCSS
$custom: #5a107f;
$custom-light: #8d5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a107f",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 280,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3667,
    "c": 0.16994,
    "h": 310.3
  },
  "luminance": 0.04077
}

Semantic roles & 50–950 ramp

primary
#5A107F
secondary
#60B536
accent
#F43474
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A107F

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

Preview Lab → · Contrast checker → · Palette generator →

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