#5A2C8E#5A2C8E

#5A2C8E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.155 H 301.3°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#5A2C8E
RGBrgb(90, 44, 142)
HSLhsl(268, 53%, 36%)
HSVhsv(268, 69%, 56%)
CMYKcmyk(36.6%, 69%, 0%, 44.3%)
CIE-LABlab(29.23, 41.07, -46.42)
CIE-LCHlch(29.23, 61.98, 311.50°)
OKLaboklab(40.79% 0.0804 -0.1321)
OKLCHoklch(40.79% 0.155 301.3)
XYZxyz(9.9984, 5.9280, 26.2034)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2C8E #608E2C
analogous
#2C2F8E #5A2C8E #8B2C8E
triadic
#5A2C8E #8E5A2C #2C8E5A
tetradic
#5A2C8E #8E2C2F #608E2C #2C8E8B
square
#5A2C8E #8E2C2F #608E2C #2C8E8B
split-complementary
#5A2C8E #8E8B2C #2F8E2C
monochromatic
#1F0F31 #3C1E5F #5A2C8E #783ABD #9765CF

Accessibility & contrast

On white

9.61
#5A2C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5A2C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2C8E
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2C8E#FFFFFF#000000##FFFFFF
##5A2C8E1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#4F4359
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a2c8e;
/* rgb */ color: rgb(90, 44, 142);
/* oklch */ color: oklch(40.8% 0.155 301.3);
Tailwind
colors: {
  custom: {
    50: '#8d69b0',
    500: '#5a2c8e',
    950: '#000000',
  },
}
SCSS
$custom: #5a2c8e;
$custom-light: #8d69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2c8e",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 268.163,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40794,
    "c": 0.15466,
    "h": 301.3
  },
  "luminance": 0.05928
}

Semantic roles & 50–950 ramp

primary
#5A2C8E
secondary
#8EB660
accent
#DC4C98
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5A2C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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