#5A2D71#5A2D71

#5A2D71 is a dark, moderate violet. Relative luminance 0.052; OKLCH L 38.8% C 0.119 H 312.7°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#5A2D71
RGBrgb(90, 45, 113)
HSLhsl(280, 43%, 31%)
HSVhsv(280, 60%, 44%)
CMYKcmyk(20.4%, 60.2%, 0%, 55.7%)
CIE-LABlab(27.42, 33.21, -31.13)
CIE-LCHlch(27.42, 45.52, 316.85°)
OKLaboklab(38.84% 0.0806 -0.0873)
OKLCHoklch(38.84% 0.119 312.7)
XYZxyz(8.1350, 5.2429, 16.2030)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2D71 #44712D
analogous
#382D71 #5A2D71 #712D66
triadic
#5A2D71 #715A2D #2D715A
tetradic
#5A2D71 #71382D #44712D #2D6671
square
#5A2D71 #71382D #44712D #2D6671
split-complementary
#5A2D71 #66712D #2D7138
monochromatic
#140A19 #371C45 #5A2D71 #7D3E9D #9C5BBE

Accessibility & contrast

On white

10.25
#5A2D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5A2D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2D71
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2D71#FFFFFF#000000##FFFFFF
##5A2D711.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183E73
Deuteranopia (green-blind)
#29426F
Tritanopia (blue-blind)
#58394A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a2d71;
/* rgb */ color: rgb(90, 45, 113);
/* oklch */ color: oklch(38.8% 0.119 312.7);
Tailwind
colors: {
  custom: {
    50: '#8b689a',
    500: '#5a2d71',
    950: '#000000',
  },
}
SCSS
$custom: #5a2d71;
$custom-light: #8b689a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2d71",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 279.706,
    "s": 43.038,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38838,
    "c": 0.11878,
    "h": 312.7
  },
  "luminance": 0.05243
}

Semantic roles & 50–950 ramp

primary
#5A2D71
secondary
#71A357
accent
#D35580
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5A2D71

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

Preview Lab → · Contrast checker → · Palette generator →

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