#A22796#A22796

#A22796 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 51.0% C 0.198 H 332.5°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#A22796
RGBrgb(162, 39, 150)
HSLhsl(306, 61%, 39%)
HSVhsv(306, 76%, 64%)
CMYKcmyk(0%, 75.9%, 7.4%, 36.5%)
CIE-LABlab(40.14, 60.91, -33.24)
CIE-LCHlch(40.14, 69.39, 331.38°)
OKLaboklab(51.02% 0.1752 -0.0914)
OKLCHoklch(51.02% 0.198 332.5)
XYZxyz(21.1309, 11.3362, 29.9234)
Luminance0.1133 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22796 #27A233
analogous
#7127A2 #A22796 #A22758
triadic
#A22796 #96A227 #2796A2
tetradic
#A22796 #A27127 #27A233 #2758A2
square
#A22796 #A27127 #27A233 #2758A2
split-complementary
#A22796 #58A227 #27A271
monochromatic
#3F0F3B #711B68 #A22796 #CF37C0 #DB69D0

Accessibility & contrast

On white

6.43
#A22796 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#A22796 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22796
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22796#FFFFFF#000000##FFFFFF
##A227961.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5499
Deuteranopia (green-blind)
#506593
Tritanopia (blue-blind)
#A9355D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a22796;
/* rgb */ color: rgb(162, 39, 150);
/* oklch */ color: oklch(51.0% 0.198 332.5);
Tailwind
colors: {
  custom: {
    50: '#c16fb5',
    500: '#a22796',
    950: '#000000',
  },
}
SCSS
$custom: #a22796;
$custom-light: #c16fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#a22796",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 305.854,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51015,
    "c": 0.19762,
    "h": 332.5
  },
  "luminance": 0.11334
}

Semantic roles & 50–950 ramp

primary
#A22796
secondary
#64C16D
accent
#E45343
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A22796

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

Preview Lab → · Contrast checker → · Palette generator →

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