#A02798#A02798

#A02798 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.8% C 0.198 H 331.0°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#A02798
RGBrgb(160, 39, 152)
HSLhsl(304, 61%, 39%)
HSVhsv(304, 76%, 63%)
CMYKcmyk(0%, 75.6%, 5%, 37.3%)
CIE-LABlab(39.90, 60.78, -34.85)
CIE-LCHlch(39.90, 70.06, 330.17°)
OKLaboklab(50.82% 0.1732 -0.0961)
OKLCHoklch(50.82% 0.198 331)
XYZxyz(20.8902, 11.1933, 30.7599)
Luminance0.1119 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A02798 #27A02F
analogous
#6C27A0 #A02798 #A0275C
triadic
#A02798 #98A027 #2798A0
tetradic
#A02798 #A06C27 #27A02F #275CA0
square
#A02798 #A06C27 #27A02F #275CA0
split-complementary
#A02798 #5CA027 #27A06C
monochromatic
#3E0F3B #6F1B69 #A02798 #CE36C4 #DA67D2

Accessibility & contrast

On white

6.48
#A02798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#A02798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A02798
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A02798#FFFFFF#000000##FFFFFF
##A027981.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A539B
Deuteranopia (green-blind)
#4D6495
Tritanopia (blue-blind)
#A6375E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a02798;
/* rgb */ color: rgb(160, 39, 152);
/* oklch */ color: oklch(50.8% 0.198 331.0);
Tailwind
colors: {
  custom: {
    50: '#c06fb7',
    500: '#a02798',
    950: '#000000',
  },
}
SCSS
$custom: #a02798;
$custom-light: #c06fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#a02798",
  "rgb": {
    "r": 160,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 303.967,
    "s": 60.804,
    "l": 39.02
  },
  "oklch": {
    "l": 0.50815,
    "c": 0.19808,
    "h": 331
  },
  "luminance": 0.11192
}

Semantic roles & 50–950 ramp

primary
#A02798
secondary
#63C069
accent
#E44E44
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A02798

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

Preview Lab → · Contrast checker → · Palette generator →

#A02798 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva