#5A296E#5A296E

#5A296E is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.0% C 0.122 H 314.9°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#5A296E
RGBrgb(90, 41, 110)
HSLhsl(283, 46%, 30%)
HSVhsv(283, 63%, 43%)
CMYKcmyk(18.2%, 62.7%, 0%, 56.9%)
CIE-LABlab(26.41, 34.71, -30.82)
CIE-LCHlch(26.41, 46.42, 318.40°)
OKLaboklab(38.04% 0.0862 -0.0863)
OKLCHoklch(38.04% 0.122 314.9)
XYZxyz(7.8234, 4.8856, 15.2797)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A296E #3D6E29
analogous
#38296E #5A296E #6E295F
triadic
#5A296E #6E5A29 #296E5A
tetradic
#5A296E #6E3829 #3D6E29 #295F6E
square
#5A296E #6E3829 #3D6E29 #295F6E
split-complementary
#5A296E #5F6E29 #296E38
monochromatic
#120816 #361841 #5A296E #7E3A9B #9F53BF

Accessibility & contrast

On white

10.62
#5A296E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5A296E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A296E
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A296E#FFFFFF#000000##FFFFFF
##5A296E1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143C70
Deuteranopia (green-blind)
#28406C
Tritanopia (blue-blind)
#593547
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a296e;
/* rgb */ color: rgb(90, 41, 110);
/* oklch */ color: oklch(38.0% 0.122 314.9);
Tailwind
colors: {
  custom: {
    50: '#8b6698',
    500: '#5a296e',
    950: '#000000',
  },
}
SCSS
$custom: #5a296e;
$custom-light: #8b6698;
$custom-dark: #000000;
JSON
{
  "hex": "#5a296e",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 110
  },
  "hsl": {
    "h": 282.609,
    "s": 45.695,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3804,
    "c": 0.12196,
    "h": 314.9
  },
  "luminance": 0.04885
}

Semantic roles & 50–950 ramp

primary
#5A296E
secondary
#69A053
accent
#D55278
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5A296E

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

Preview Lab → · Contrast checker → · Palette generator →

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