#5A2175#5A2175

#5A2175 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.5% C 0.142 H 312.7°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#5A2175
RGBrgb(90, 33, 117)
HSLhsl(281, 56%, 29%)
HSVhsv(281, 72%, 46%)
CMYKcmyk(23.1%, 71.8%, 0%, 54.1%)
CIE-LABlab(25.40, 40.41, -36.91)
CIE-LCHlch(25.40, 54.73, 317.59°)
OKLaboklab(37.46% 0.0962 -0.1041)
OKLCHoklch(37.46% 0.142 312.7)
XYZxyz(7.9706, 4.5460, 17.2838)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2175 #3C7521
analogous
#302175 #5A2175 #752166
triadic
#5A2175 #755A21 #21755A
tetradic
#5A2175 #753021 #3C7521 #216675
square
#5A2175 #753021 #3C7521 #216675
split-complementary
#5A2175 #667521 #217530
monochromatic
#120718 #351445 #5A2175 #7F2EA5 #A046CB

Accessibility & contrast

On white

11.00
#5A2175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5A2175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2175
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2175#FFFFFF#000000##FFFFFF
##5A21751.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003977
Deuteranopia (green-blind)
#1A3D73
Tritanopia (blue-blind)
#573248
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a2175;
/* rgb */ color: rgb(90, 33, 117);
/* oklch */ color: oklch(37.5% 0.142 312.7);
Tailwind
colors: {
  custom: {
    50: '#8c619d',
    500: '#5a2175',
    950: '#000000',
  },
}
SCSS
$custom: #5a2175;
$custom-light: #8c619d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2175",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 280.714,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37464,
    "c": 0.14174,
    "h": 312.7
  },
  "luminance": 0.04546
}

Semantic roles & 50–950 ramp

primary
#5A2175
secondary
#68A84A
accent
#DF4979
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #5A2175

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

Preview Lab → · Contrast checker → · Palette generator →

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