#5A2154#5A2154

#5A2154 is a dark, moderate purple. Relative luminance 0.039; OKLCH L 35.3% C 0.108 H 331.9°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#5A2154
RGBrgb(90, 33, 84)
HSLhsl(306, 46%, 24%)
HSVhsv(306, 63%, 35%)
CMYKcmyk(0%, 63.3%, 6.7%, 64.7%)
CIE-LABlab(23.34, 33.41, -18.65)
CIE-LCHlch(23.34, 38.26, 330.83°)
OKLaboklab(35.32% 0.0955 -0.051)
OKLCHoklch(35.32% 0.108 331.9)
XYZxyz(6.3605, 3.9019, 8.8039)
Luminance0.0390 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2154 #215A27
analogous
#44215A #5A2154 #5A2138
triadic
#5A2154 #545A21 #21545A
tetradic
#5A2154 #5A4421 #215A27 #21385A
square
#5A2154 #5A4421 #215A27 #21385A
split-complementary
#5A2154 #385A21 #215A44
monochromatic
#160815 #2D112A #5A2154 #87317E #B442A8

Accessibility & contrast

On white

11.80
#5A2154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5A2154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2154
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2154#FFFFFF#000000##FFFFFF
##5A21541.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3256
Deuteranopia (green-blind)
#313B52
Tritanopia (blue-blind)
#5E2637
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a2154;
/* rgb */ color: rgb(90, 33, 84);
/* oklch */ color: oklch(35.3% 0.108 331.9);
Tailwind
colors: {
  custom: {
    50: '#8b6084',
    500: '#5a2154',
    950: '#000000',
  },
}
SCSS
$custom: #5a2154;
$custom-light: #8b6084;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2154",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 306.316,
    "s": 46.341,
    "l": 24.118
  },
  "oklch": {
    "l": 0.35315,
    "c": 0.10825,
    "h": 331.9
  },
  "luminance": 0.03901
}

Semantic roles & 50–950 ramp

primary
#5A2154
secondary
#498E50
accent
#D66052
background
#F8F5F8
surface
#F0EAEF
border
#CBC6CA
text
#0C050B
muted
#7D797C

Preview Lab

Preview with #5A2154

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

Preview Lab → · Contrast checker → · Palette generator →

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