#A22897#A22897

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

Color values

HEX#A22897
RGBrgb(162, 40, 151)
HSLhsl(305, 60%, 40%)
HSVhsv(305, 75%, 64%)
CMYKcmyk(0%, 75.3%, 6.8%, 36.5%)
CIE-LABlab(40.30, 60.75, -33.59)
CIE-LCHlch(40.30, 69.42, 331.07°)
OKLaboklab(51.15% 0.1744 -0.0924)
OKLCHoklch(51.15% 0.197 332.1)
XYZxyz(21.2451, 11.4351, 30.3604)
Luminance0.1143 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22897 #28A233
analogous
#7028A2 #A22897 #A2285A
triadic
#A22897 #97A228 #2897A2
tetradic
#A22897 #A27028 #28A233 #285AA2
square
#A22897 #A27028 #28A233 #285AA2
split-complementary
#A22897 #5AA228 #28A270
monochromatic
#40103C #711C69 #A22897 #CE39C1 #DA6AD0

Accessibility & contrast

On white

6.39
#A22897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#A22897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22897
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22897#FFFFFF#000000##FFFFFF
##A228971.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a22897;
/* rgb */ color: rgb(162, 40, 151);
/* oklch */ color: oklch(51.1% 0.197 332.1);
Tailwind
colors: {
  custom: {
    50: '#c16fb6',
    500: '#a22897',
    950: '#000000',
  },
}
SCSS
$custom: #a22897;
$custom-light: #c16fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#a22897",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 305.41,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51149,
    "c": 0.19732,
    "h": 332.1
  },
  "luminance": 0.11433
}

Semantic roles & 50–950 ramp

primary
#A22897
secondary
#65C16D
accent
#E45344
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A22897

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

Preview Lab → · Contrast checker → · Palette generator →

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