#5A2D9C#5A2D9C

#5A2D9C is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.170 H 297.0°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#5A2D9C
RGBrgb(90, 45, 156)
HSLhsl(264, 55%, 39%)
HSVhsv(264, 71%, 61%)
CMYKcmyk(42.3%, 71.2%, 0%, 38.8%)
CIE-LABlab(30.52, 44.27, -52.91)
CIE-LCHlch(30.52, 68.98, 309.92°)
OKLaboklab(42.06% 0.0771 -0.1512)
OKLCHoklch(42.06% 0.17 297)
XYZxyz(11.1540, 6.4505, 32.1035)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2D9C #6F9C2D
analogous
#2D389C #5A2D9C #922D9C
triadic
#5A2D9C #9C5A2D #2D9C5A
tetradic
#5A2D9C #9C2D38 #6F9C2D #2D9C92
square
#5A2D9C #9C2D38 #6F9C2D #2D9C92
split-complementary
#5A2D9C #9C922D #389C2D
monochromatic
#23123D #3F1F6D #5A2D9C #763FC8 #986ED5

Accessibility & contrast

On white

9.17
#5A2D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5A2D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2D9C
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2D9C#FFFFFF#000000##FFFFFF
##5A2D9C1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00469A
Tritanopia (blue-blind)
#494861
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a2d9c;
/* rgb */ color: rgb(90, 45, 156);
/* oklch */ color: oklch(42.1% 0.170 297.0);
Tailwind
colors: {
  custom: {
    50: '#8f6aba',
    500: '#5a2d9c',
    950: '#000000',
  },
}
SCSS
$custom: #5a2d9c;
$custom-light: #8f6aba;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2d9c",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 264.324,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42063,
    "c": 0.1697,
    "h": 297
  },
  "luminance": 0.06451
}

Semantic roles & 50–950 ramp

primary
#5A2D9C
secondary
#9ABC68
accent
#DF49A2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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