#5A2185#5A2185

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

Color values

HEX#5A2185
RGBrgb(90, 33, 133)
HSLhsl(274, 60%, 33%)
HSVhsv(274, 75%, 52%)
CMYKcmyk(32.3%, 75.2%, 0%, 47.8%)
CIE-LABlab(26.61, 44.19, -45.08)
CIE-LCHlch(26.61, 63.13, 314.43°)
OKLaboklab(38.7% 0.0938 -0.1281)
OKLCHoklch(38.7% 0.159 306.2)
XYZxyz(8.9930, 4.9549, 22.6684)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2185 #4C8521
analogous
#282185 #5A2185 #85217E
triadic
#5A2185 #855A21 #21855A
tetradic
#5A2185 #852821 #4C8521 #217E85
square
#5A2185 #852821 #4C8521 #217E85
split-complementary
#5A2185 #7E8521 #218528
monochromatic
#180923 #391554 #5A2185 #7B2DB6 #9A4DD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A2185#FFFFFF#000000##FFFFFF
##5A21851.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)
#003D88
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#523951
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a2185;
/* rgb */ color: rgb(90, 33, 133);
/* oklch */ color: oklch(38.7% 0.159 306.2);
Tailwind
colors: {
  custom: {
    50: '#8d62a9',
    500: '#5a2185',
    950: '#000000',
  },
}
SCSS
$custom: #5a2185;
$custom-light: #8d62a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2185",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 274.2,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38704,
    "c": 0.15878,
    "h": 306.2
  },
  "luminance": 0.04955
}

Semantic roles & 50–950 ramp

primary
#5A2185
secondary
#79B64C
accent
#E34489
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5A2185

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

Preview Lab → · Contrast checker → · Palette generator →

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