#5A2273#5A2273

#5A2273 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.4% C 0.138 H 313.5°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#5A2273
RGBrgb(90, 34, 115)
HSLhsl(281, 54%, 29%)
HSVhsv(281, 70%, 45%)
CMYKcmyk(21.7%, 70.4%, 0%, 54.9%)
CIE-LABlab(25.43, 39.47, -35.58)
CIE-LCHlch(25.43, 53.14, 317.96°)
OKLaboklab(37.44% 0.0952 -0.1002)
OKLCHoklch(37.44% 0.138 313.5)
XYZxyz(7.8825, 4.5558, 16.6805)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2273 #3B7322
analogous
#322273 #5A2273 #732264
triadic
#5A2273 #735A22 #22735A
tetradic
#5A2273 #733222 #3B7322 #226473
square
#5A2273 #733222 #3B7322 #226473
split-complementary
#5A2273 #647322 #227332
monochromatic
#120718 #351444 #5A2273 #7F30A2 #A147C9

Accessibility & contrast

On white

10.99
#5A2273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2273
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2273#FFFFFF#000000##FFFFFF
##5A22731.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003975
Deuteranopia (green-blind)
#1D3E71
Tritanopia (blue-blind)
#583247
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a2273;
/* rgb */ color: rgb(90, 34, 115);
/* oklch */ color: oklch(37.4% 0.138 313.5);
Tailwind
colors: {
  custom: {
    50: '#8c629c',
    500: '#5a2273',
    950: '#000000',
  },
}
SCSS
$custom: #5a2273;
$custom-light: #8c629c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2273",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 115
  },
  "hsl": {
    "h": 281.481,
    "s": 54.362,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37441,
    "c": 0.13821,
    "h": 313.5
  },
  "luminance": 0.04556
}

Semantic roles & 50–950 ramp

primary
#5A2273
secondary
#67A64B
accent
#DE4A78
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5A2273

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

Preview Lab → · Contrast checker → · Palette generator →

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