#5A1485#5A1485

#5A1485 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.172 H 307.7°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#5A1485
RGBrgb(90, 20, 133)
HSLhsl(277, 74%, 30%)
HSVhsv(277, 85%, 52%)
CMYKcmyk(32.3%, 85%, 0%, 47.8%)
CIE-LABlab(24.85, 49.25, -47.93)
CIE-LCHlch(24.85, 68.72, 315.78°)
OKLaboklab(37.47% 0.1053 -0.1364)
OKLCHoklch(37.47% 0.172 307.7)
XYZxyz(8.6993, 4.3676, 22.5705)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1485 #3F8514
analogous
#211485 #5A1485 #851478
triadic
#5A1485 #855A14 #14855A
tetradic
#5A1485 #852114 #3F8514 #147885
square
#5A1485 #852114 #3F8514 #147885
split-complementary
#5A1485 #788514 #148521
monochromatic
#12041B #360C50 #5A1485 #7E1CBA #9E33E0

Accessibility & contrast

On white

11.21
#5A1485 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5A1485 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1485
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1485#FFFFFF#000000##FFFFFF
##5A14851.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003C83
Tritanopia (blue-blind)
#53334E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a1485;
/* rgb */ color: rgb(90, 20, 133);
/* oklch */ color: oklch(37.5% 0.172 307.7);
Tailwind
colors: {
  custom: {
    50: '#8e5ca9',
    500: '#5a1485',
    950: '#000000',
  },
}
SCSS
$custom: #5a1485;
$custom-light: #8e5ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1485",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 133
  },
  "hsl": {
    "h": 277.168,
    "s": 73.856,
    "l": 30
  },
  "oklch": {
    "l": 0.37473,
    "c": 0.17229,
    "h": 307.7
  },
  "luminance": 0.04367
}

Semantic roles & 50–950 ramp

primary
#5A1485
secondary
#6BBA3B
accent
#F1377E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1485

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

Preview Lab → · Contrast checker → · Palette generator →

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