#5A2D83#5A2D83

#5A2D83 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.140 H 304.9°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#5A2D83
RGBrgb(90, 45, 131)
HSLhsl(271, 49%, 35%)
HSVhsv(271, 66%, 51%)
CMYKcmyk(31.3%, 65.6%, 0%, 48.6%)
CIE-LABlab(28.61, 37.69, -40.58)
CIE-LCHlch(28.61, 55.38, 312.89°)
OKLaboklab(40.09% 0.0803 -0.1149)
OKLCHoklch(40.09% 0.14 304.9)
XYZxyz(9.2507, 5.6892, 22.0791)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2D83 #56832D
analogous
#2F2D83 #5A2D83 #832D81
triadic
#5A2D83 #835A2D #2D835A
tetradic
#5A2D83 #832F2D #56832D #2D8183
square
#5A2D83 #832F2D #56832D #2D8183
split-complementary
#5A2D83 #81832D #2D832F
monochromatic
#1B0E28 #3B1D55 #5A2D83 #793DB1 #9862C9

Accessibility & contrast

On white

9.82
#5A2D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5A2D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2D83
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2D83#FFFFFF#000000##FFFFFF
##5A2D831.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004286
Deuteranopia (green-blind)
#174481
Tritanopia (blue-blind)
#533F54
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a2d83;
/* rgb */ color: rgb(90, 45, 131);
/* oklch */ color: oklch(40.1% 0.140 304.9);
Tailwind
colors: {
  custom: {
    50: '#8c69a8',
    500: '#5a2d83',
    950: '#000000',
  },
}
SCSS
$custom: #5a2d83;
$custom-light: #8c69a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2d83",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 131
  },
  "hsl": {
    "h": 271.395,
    "s": 48.864,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40094,
    "c": 0.14023,
    "h": 304.9
  },
  "luminance": 0.05689
}

Semantic roles & 50–950 ramp

primary
#5A2D83
secondary
#84AF5C
accent
#D84F91
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5A2D83

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

Preview Lab → · Contrast checker → · Palette generator →

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