#5A2287#5A2287

#5A2287 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.160 H 305.3°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#5A2287
RGBrgb(90, 34, 135)
HSLhsl(273, 60%, 33%)
HSVhsv(273, 75%, 53%)
CMYKcmyk(33.3%, 74.8%, 0%, 47.1%)
CIE-LABlab(26.92, 44.22, -45.81)
CIE-LCHlch(26.92, 63.67, 313.99°)
OKLaboklab(38.98% 0.0924 -0.1303)
OKLCHoklch(38.98% 0.16 305.3)
XYZxyz(9.1607, 5.0670, 23.4124)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2287 #4F8722
analogous
#272287 #5A2287 #872281
triadic
#5A2287 #875A22 #22875A
tetradic
#5A2287 #872722 #4F8722 #228187
square
#5A2287 #872722 #4F8722 #228187
split-complementary
#5A2287 #818722 #228727
monochromatic
#190925 #391656 #5A2287 #7B2EB8 #9950D3

Accessibility & contrast

On white

10.43
#5A2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5A2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2287
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2287#FFFFFF#000000##FFFFFF
##5A22871.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#523A52
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5a2287;
/* rgb */ color: rgb(90, 34, 135);
/* oklch */ color: oklch(39.0% 0.160 305.3);
Tailwind
colors: {
  custom: {
    50: '#8d63ab',
    500: '#5a2287',
    950: '#000000',
  },
}
SCSS
$custom: #5a2287;
$custom-light: #8d63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2287",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 273.267,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3898,
    "c": 0.15971,
    "h": 305.3
  },
  "luminance": 0.05067
}

Semantic roles & 50–950 ramp

primary
#5A2287
secondary
#7DB74E
accent
#E3458B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5A2287

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

Preview Lab → · Contrast checker → · Palette generator →

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