#5A2C9F#5A2C9F

#5A2C9F is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.174 H 296.4°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#5A2C9F
RGBrgb(90, 44, 159)
HSLhsl(264, 57%, 40%)
HSVhsv(264, 72%, 62%)
CMYKcmyk(43.4%, 72.3%, 0%, 37.6%)
CIE-LABlab(30.59, 45.58, -54.62)
CIE-LCHlch(30.59, 71.14, 309.84°)
OKLaboklab(42.19% 0.0775 -0.1562)
OKLCHoklch(42.19% 0.174 296.4)
XYZxyz(11.3735, 6.4780, 33.4453)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2C9F #719F2C
analogous
#2C389F #5A2C9F #942C9F
triadic
#5A2C9F #9F5A2C #2C9F5A
tetradic
#5A2C9F #9F2C38 #719F2C #2C9F94
square
#5A2C9F #9F2C38 #719F2C #2C9F94
split-complementary
#5A2C9F #9F942C #389F2C
monochromatic
#24113F #3F1F6F #5A2C9F #763ECA #986ED7

Accessibility & contrast

On white

9.15
#5A2C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5A2C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2C9F
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2C9F#FFFFFF#000000##FFFFFF
##5A2C9F1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00469D
Tritanopia (blue-blind)
#484962
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a2c9f;
/* rgb */ color: rgb(90, 44, 159);
/* oklch */ color: oklch(42.2% 0.174 296.4);
Tailwind
colors: {
  custom: {
    50: '#8f69bc',
    500: '#5a2c9f',
    950: '#000000',
  },
}
SCSS
$custom: #5a2c9f;
$custom-light: #8f69bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2c9f",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 159
  },
  "hsl": {
    "h": 264,
    "s": 56.65,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42187,
    "c": 0.17438,
    "h": 296.4
  },
  "luminance": 0.06478
}

Semantic roles & 50–950 ramp

primary
#5A2C9F
secondary
#9CBE69
accent
#E048A3
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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