#5A2D85#5A2D85

#5A2D85 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.143 H 304.2°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#5A2D85
RGBrgb(90, 45, 133)
HSLhsl(271, 49%, 35%)
HSVhsv(271, 66%, 52%)
CMYKcmyk(32.3%, 66.2%, 0%, 47.8%)
CIE-LABlab(28.76, 38.20, -41.60)
CIE-LCHlch(28.76, 56.48, 312.56°)
OKLaboklab(40.24% 0.0802 -0.1179)
OKLCHoklch(40.24% 0.143 304.2)
XYZxyz(9.3875, 5.7439, 22.7999)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2D85 #58852D
analogous
#2E2D85 #5A2D85 #852D84
triadic
#5A2D85 #855A2D #2D855A
tetradic
#5A2D85 #852E2D #58852D #2D8485
square
#5A2D85 #852E2D #58852D #2D8485
split-complementary
#5A2D85 #84852D #2D852E
monochromatic
#1C0E2A #3B1E57 #5A2D85 #793CB3 #9762CA

Accessibility & contrast

On white

9.77
#5A2D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5A2D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2D85
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2D85#FFFFFF#000000##FFFFFF
##5A2D851.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004388
Deuteranopia (green-blind)
#134483
Tritanopia (blue-blind)
#524055
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a2d85;
/* rgb */ color: rgb(90, 45, 133);
/* oklch */ color: oklch(40.2% 0.143 304.2);
Tailwind
colors: {
  custom: {
    50: '#8c69a9',
    500: '#5a2d85',
    950: '#000000',
  },
}
SCSS
$custom: #5a2d85;
$custom-light: #8c69a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2d85",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 133
  },
  "hsl": {
    "h": 270.682,
    "s": 49.438,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40242,
    "c": 0.14261,
    "h": 304.2
  },
  "luminance": 0.05744
}

Semantic roles & 50–950 ramp

primary
#5A2D85
secondary
#86B05D
accent
#D94F92
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #5A2D85

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

Preview Lab → · Contrast checker → · Palette generator →

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