#5A298C#5A298C

#5A298C is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.156 H 302.5°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#5A298C
RGBrgb(90, 41, 140)
HSLhsl(270, 55%, 35%)
HSVhsv(270, 71%, 55%)
CMYKcmyk(35.7%, 70.7%, 0%, 45.1%)
CIE-LABlab(28.52, 42.10, -46.33)
CIE-LCHlch(28.52, 62.60, 312.26°)
OKLaboklab(40.24% 0.084 -0.1318)
OKLCHoklch(40.24% 0.156 302.5)
XYZxyz(9.7419, 5.6530, 25.3838)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A298C #5B8C29
analogous
#29298C #5A298C #8B298C
triadic
#5A298C #8C5A29 #298C5A
tetradic
#5A298C #8C2929 #5B8C29 #298C8B
square
#5A298C #8C2929 #5B8C29 #298C8B
split-complementary
#5A298C #8C8B29 #298C29
monochromatic
#1D0D2D #3C1B5D #5A298C #7837BB #975FD0

Accessibility & contrast

On white

9.86
#5A298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5A298C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A298C
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A298C#FFFFFF#000000##FFFFFF
##5A298C1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#504057
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a298c;
/* rgb */ color: rgb(90, 41, 140);
/* oklch */ color: oklch(40.2% 0.156 302.5);
Tailwind
colors: {
  custom: {
    50: '#8d67ae',
    500: '#5a298c',
    950: '#000000',
  },
}
SCSS
$custom: #5a298c;
$custom-light: #8d67ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5a298c",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 269.697,
    "s": 54.696,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40237,
    "c": 0.15636,
    "h": 302.5
  },
  "luminance": 0.05653
}

Semantic roles & 50–950 ramp

primary
#5A298C
secondary
#89B65B
accent
#DE4A95
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5A298C

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

Preview Lab → · Contrast checker → · Palette generator →

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