#A22798#A22798

#A22798 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 51.1% C 0.199 H 331.7°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#A22798
RGBrgb(162, 39, 152)
HSLhsl(305, 61%, 39%)
HSVhsv(305, 76%, 64%)
CMYKcmyk(0%, 75.9%, 6.2%, 36.5%)
CIE-LABlab(40.25, 61.22, -34.28)
CIE-LCHlch(40.25, 70.17, 330.76°)
OKLaboklab(51.13% 0.1753 -0.0944)
OKLCHoklch(51.13% 0.199 331.7)
XYZxyz(21.2933, 11.4012, 30.7788)
Luminance0.1140 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22798 #27A231
analogous
#6F27A2 #A22798 #A2275B
triadic
#A22798 #98A227 #2798A2
tetradic
#A22798 #A26F27 #27A231 #275BA2
square
#A22798 #A26F27 #27A231 #275BA2
split-complementary
#A22798 #5BA227 #27A26F
monochromatic
#3F0F3B #711B6A #A22798 #CF37C3 #DB69D2

Accessibility & contrast

On white

6.40
#A22798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#A22798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22798
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22798#FFFFFF#000000##FFFFFF
##A227981.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D549B
Deuteranopia (green-blind)
#4F6595
Tritanopia (blue-blind)
#A9365E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a22798;
/* rgb */ color: rgb(162, 39, 152);
/* oklch */ color: oklch(51.1% 0.199 331.7);
Tailwind
colors: {
  custom: {
    50: '#c16fb7',
    500: '#a22798',
    950: '#000000',
  },
}
SCSS
$custom: #a22798;
$custom-light: #c16fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#a22798",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 304.878,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51127,
    "c": 0.19909,
    "h": 331.7
  },
  "luminance": 0.11399
}

Semantic roles & 50–950 ramp

primary
#A22798
secondary
#64C16B
accent
#E45143
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A22798

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

Preview Lab → · Contrast checker → · Palette generator →

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