#5A2E85#5A2E85

#5A2E85 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.141 H 304.0°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#5A2E85
RGBrgb(90, 46, 133)
HSLhsl(270, 49%, 35%)
HSVhsv(270, 65%, 52%)
CMYKcmyk(32.3%, 65.4%, 0%, 47.8%)
CIE-LABlab(28.96, 37.66, -41.28)
CIE-LCHlch(28.96, 55.87, 312.38°)
OKLaboklab(40.39% 0.0789 -0.117)
OKLCHoklch(40.39% 0.141 304)
XYZxyz(9.4261, 5.8211, 22.8128)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2E85 #59852E
analogous
#2F2E85 #5A2E85 #852E84
triadic
#5A2E85 #855A2E #2E855A
tetradic
#5A2E85 #852F2E #59852E #2E8485
square
#5A2E85 #852F2E #59852E #2E8485
split-complementary
#5A2E85 #84852E #2E852F
monochromatic
#1C0F2A #3B1E58 #5A2E85 #793EB2 #9764C9

Accessibility & contrast

On white

9.70
#5A2E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5A2E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2E85
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2E85#FFFFFF#000000##FFFFFF
##5A2E851.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a2e85;
/* rgb */ color: rgb(90, 46, 133);
/* oklch */ color: oklch(40.4% 0.141 304.0);
Tailwind
colors: {
  custom: {
    50: '#8c69a9',
    500: '#5a2e85',
    950: '#000000',
  },
}
SCSS
$custom: #5a2e85;
$custom-light: #8c69a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2e85",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 133
  },
  "hsl": {
    "h": 270.345,
    "s": 48.603,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40386,
    "c": 0.14113,
    "h": 304
  },
  "luminance": 0.05821
}

Semantic roles & 50–950 ramp

primary
#5A2E85
secondary
#87B05F
accent
#D85093
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #5A2E85

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

Preview Lab → · Contrast checker → · Palette generator →

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