#5A2087#5A2087

#5A2087 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.162 H 305.6°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#5A2087
RGBrgb(90, 32, 135)
HSLhsl(274, 62%, 33%)
HSVhsv(274, 76%, 53%)
CMYKcmyk(33.3%, 76.3%, 0%, 47.1%)
CIE-LABlab(26.61, 45.12, -46.32)
CIE-LCHlch(26.61, 64.67, 314.25°)
OKLaboklab(38.76% 0.0944 -0.1318)
OKLCHoklch(38.76% 0.162 305.6)
XYZxyz(9.1052, 4.9560, 23.3939)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2087 #4D8720
analogous
#262087 #5A2087 #872081
triadic
#5A2087 #875A20 #20875A
tetradic
#5A2087 #872620 #4D8720 #208187
square
#5A2087 #872620 #4D8720 #208187
split-complementary
#5A2087 #818720 #208726
monochromatic
#180924 #391456 #5A2087 #7B2CB8 #994DD5

Accessibility & contrast

On white

10.55
#5A2087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5A2087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2087
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2087#FFFFFF#000000##FFFFFF
##5A20871.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#523952
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a2087;
/* rgb */ color: rgb(90, 32, 135);
/* oklch */ color: oklch(38.8% 0.162 305.6);
Tailwind
colors: {
  custom: {
    50: '#8d62ab',
    500: '#5a2087',
    950: '#000000',
  },
}
SCSS
$custom: #5a2087;
$custom-light: #8d62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2087",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 273.786,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38756,
    "c": 0.16209,
    "h": 305.6
  },
  "luminance": 0.04956
}

Semantic roles & 50–950 ramp

primary
#5A2087
secondary
#7BB84B
accent
#E5438A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5A2087

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

Preview Lab → · Contrast checker → · Palette generator →

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