#5A2899#5A2899

#5A2899 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.172 H 298.7°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#5A2899
RGBrgb(90, 40, 153)
HSLhsl(267, 59%, 38%)
HSVhsv(267, 74%, 60%)
CMYKcmyk(41.2%, 73.9%, 0%, 40%)
CIE-LABlab(29.39, 45.96, -52.92)
CIE-LCHlch(29.39, 70.09, 310.97°)
OKLaboklab(41.18% 0.0827 -0.1512)
OKLCHoklch(41.18% 0.172 298.7)
XYZxyz(10.7235, 5.9910, 30.7222)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2899 #679928
analogous
#282E99 #5A2899 #922899
triadic
#5A2899 #995A28 #28995A
tetradic
#5A2899 #99282E #679928 #289992
square
#5A2899 #99282E #679928 #289992
split-complementary
#5A2899 #999228 #2E9928
monochromatic
#210F38 #3D1B68 #5A2899 #7735CA #9765D7

Accessibility & contrast

On white

9.55
#5A2899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5A2899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2899
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2899#FFFFFF#000000##FFFFFF
##5A28991.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#4B455E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a2899;
/* rgb */ color: rgb(90, 40, 153);
/* oklch */ color: oklch(41.2% 0.172 298.7);
Tailwind
colors: {
  custom: {
    50: '#8f67b8',
    500: '#5a2899',
    950: '#000000',
  },
}
SCSS
$custom: #5a2899;
$custom-light: #8f67b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2899",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 266.549,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41183,
    "c": 0.17232,
    "h": 298.7
  },
  "luminance": 0.05991
}

Semantic roles & 50–950 ramp

primary
#5A2899
secondary
#94BD60
accent
#E2469D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2899

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

Preview Lab → · Contrast checker → · Palette generator →

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