#A22FA8#A22FA8

#A22FA8 is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.7% C 0.203 H 325.8°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#A22FA8
RGBrgb(162, 47, 168)
HSLhsl(297, 56%, 42%)
HSVhsv(297, 72%, 66%)
CMYKcmyk(3.6%, 72%, 0%, 34.1%)
CIE-LABlab(42.07, 61.22, -41.00)
CIE-LCHlch(42.07, 73.68, 326.19°)
OKLaboklab(52.72% 0.1679 -0.1139)
OKLCHoklch(52.72% 0.203 325.8)
XYZxyz(22.9842, 12.5431, 38.2487)
Luminance0.1254 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22FA8 #35A82F
analogous
#662FA8 #A22FA8 #A82F71
triadic
#A22FA8 #A8A22F #2FA8A2
tetradic
#A22FA8 #A8662F #35A82F #2F71A8
square
#A22FA8 #A8662F #35A82F #2F71A8
split-complementary
#A22FA8 #71A82F #2FA866
monochromatic
#461448 #742278 #A22FA8 #C548CC #D478D9

Accessibility & contrast

On white

5.99
#A22FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#A22FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22FA8
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22FA8#FFFFFF#000000##FFFFFF
##A22FA81.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5AAB
Deuteranopia (green-blind)
#4A68A5
Tritanopia (blue-blind)
#A64369
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a22fa8;
/* rgb */ color: rgb(162, 47, 168);
/* oklch */ color: oklch(52.7% 0.203 325.8);
Tailwind
colors: {
  custom: {
    50: '#c173c2',
    500: '#a22fa8',
    950: '#000000',
  },
}
SCSS
$custom: #a22fa8;
$custom-light: #c173c2;
$custom-dark: #000000;
JSON
{
  "hex": "#a22fa8",
  "rgb": {
    "r": 162,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 297.025,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52717,
    "c": 0.2029,
    "h": 325.8
  },
  "luminance": 0.12542
}

Semantic roles & 50–950 ramp

primary
#A22FA8
secondary
#75C171
accent
#E04850
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #A22FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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