#A22797#A22797

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

Color values

HEX#A22797
RGBrgb(162, 39, 151)
HSLhsl(305, 61%, 39%)
HSVhsv(305, 76%, 64%)
CMYKcmyk(0%, 75.9%, 6.8%, 36.5%)
CIE-LABlab(40.19, 61.07, -33.76)
CIE-LCHlch(40.19, 69.78, 331.07°)
OKLaboklab(51.07% 0.1753 -0.0929)
OKLCHoklch(51.07% 0.198 332.1)
XYZxyz(21.2118, 11.3685, 30.3493)
Luminance0.1137 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22797 #27A232
analogous
#7027A2 #A22797 #A2275A
triadic
#A22797 #97A227 #2797A2
tetradic
#A22797 #A27027 #27A232 #275AA2
square
#A22797 #A27027 #27A232 #275AA2
split-complementary
#A22797 #5AA227 #27A270
monochromatic
#3F0F3B #711B69 #A22797 #CF37C1 #DB69D1

Accessibility & contrast

On white

6.42
#A22797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A22797
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22797#FFFFFF#000000##FFFFFF
##A227971.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a22797;
/* rgb */ color: rgb(162, 39, 151);
/* oklch */ color: oklch(51.1% 0.198 332.1);
Tailwind
colors: {
  custom: {
    50: '#c16fb6',
    500: '#a22797',
    950: '#000000',
  },
}
SCSS
$custom: #a22797;
$custom-light: #c16fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#a22797",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 305.366,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51071,
    "c": 0.19836,
    "h": 332.1
  },
  "luminance": 0.11367
}

Semantic roles & 50–950 ramp

primary
#A22797
secondary
#64C16C
accent
#E45243
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A22797

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

Preview Lab → · Contrast checker → · Palette generator →

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