#5A117F#5A117F

#5A117F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.169 H 310.2°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#5A117F
RGBrgb(90, 17, 127)
HSLhsl(280, 76%, 28%)
HSVhsv(280, 87%, 50%)
CMYKcmyk(29.1%, 86.6%, 0%, 50.2%)
CIE-LABlab(24.02, 48.84, -45.50)
CIE-LCHlch(24.02, 66.75, 317.03°)
OKLaboklab(36.74% 0.1091 -0.1292)
OKLCHoklch(36.74% 0.169 310.2)
XYZxyz(8.2469, 4.1071, 20.4329)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A117F #367F11
analogous
#23117F #5A117F #7F116D
triadic
#5A117F #7F5A11 #117F5A
tetradic
#5A117F #7F2311 #367F11 #116D7F
square
#5A117F #7F2311 #367F11 #116D7F
split-complementary
#5A117F #6D7F11 #117F23
monochromatic
#13041B #340A49 #5A117F #8018B5 #A428E2

Accessibility & contrast

On white

11.53
#5A117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A117F
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A117F#FFFFFF#000000##FFFFFF
##5A117F1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.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: #5a117f;
/* rgb */ color: rgb(90, 17, 127);
/* oklch */ color: oklch(36.7% 0.169 310.2);
Tailwind
colors: {
  custom: {
    50: '#8d5ba5',
    500: '#5a117f',
    950: '#000000',
  },
}
SCSS
$custom: #5a117f;
$custom-light: #8d5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a117f",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 279.818,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36738,
    "c": 0.16916,
    "h": 310.2
  },
  "luminance": 0.04107
}

Semantic roles & 50–950 ramp

primary
#5A117F
secondary
#61B537
accent
#F33575
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A117F

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

Preview Lab → · Contrast checker → · Palette generator →

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