#5A137F#5A137F

#5A137F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.167 H 310.0°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#5A137F
RGBrgb(90, 19, 127)
HSLhsl(279, 74%, 29%)
HSVhsv(279, 85%, 50%)
CMYKcmyk(29.1%, 85%, 0%, 50.2%)
CIE-LABlab(24.23, 48.23, -45.16)
CIE-LCHlch(24.23, 66.07, 316.88°)
OKLaboklab(36.88% 0.1077 -0.1282)
OKLCHoklch(36.88% 0.167 310)
XYZxyz(8.2793, 4.1719, 20.4437)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A137F #387F13
analogous
#24137F #5A137F #7F136E
triadic
#5A137F #7F5A13 #137F5A
tetradic
#5A137F #7F2413 #387F13 #136E7F
square
#5A137F #7F2413 #387F13 #136E7F
split-complementary
#5A137F #6E7F13 #137F24
monochromatic
#13041B #340B4A #5A137F #801BB4 #A22DE0

Accessibility & contrast

On white

11.45
#5A137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5A137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A137F
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A137F#FFFFFF#000000##FFFFFF
##5A137F1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#55304B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a137f;
/* rgb */ color: rgb(90, 19, 127);
/* oklch */ color: oklch(36.9% 0.167 310.0);
Tailwind
colors: {
  custom: {
    50: '#8d5ca5',
    500: '#5a137f',
    950: '#000000',
  },
}
SCSS
$custom: #5a137f;
$custom-light: #8d5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a137f",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 279.444,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36884,
    "c": 0.16748,
    "h": 310
  },
  "luminance": 0.04172
}

Semantic roles & 50–950 ramp

primary
#5A137F
secondary
#64B439
accent
#F13777
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A137F

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

Preview Lab → · Contrast checker → · Palette generator →

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