#AF2AA6#AF2AA6

#AF2AA6 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.2% C 0.213 H 331.1°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#AF2AA6
RGBrgb(175, 42, 166)
HSLhsl(304, 61%, 43%)
HSVhsv(304, 76%, 69%)
CMYKcmyk(0%, 76%, 5.1%, 31.4%)
CIE-LABlab(43.54, 65.36, -37.33)
CIE-LCHlch(43.54, 75.27, 330.27°)
OKLaboklab(54.15% 0.1864 -0.1029)
OKLCHoklch(54.15% 0.213 331.1)
XYZxyz(25.3901, 13.5251, 37.3424)
Luminance0.1352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AA6 #2AAF33
analogous
#752AAF #AF2AA6 #AF2A64
triadic
#AF2AA6 #A6AF2A #2AA6AF
tetradic
#AF2AA6 #AF752A #2AAF33 #2A64AF
square
#AF2AA6 #AF752A #2AAF33 #2A64AF
split-complementary
#AF2AA6 #64AF2A #2AAF75
monochromatic
#4C1248 #7E1E77 #AF2AA6 #D244C9 #DE75D7

Accessibility & contrast

On white

5.67
#AF2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AF2AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2AA6
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AA6#FFFFFF#000000##FFFFFF
##AF2AA61.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5BA9
Deuteranopia (green-blind)
#556DA3
Tritanopia (blue-blind)
#B63B66
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2aa6;
/* rgb */ color: rgb(175, 42, 166);
/* oklch */ color: oklch(54.2% 0.213 331.1);
Tailwind
colors: {
  custom: {
    50: '#cb73c1',
    500: '#af2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #af2aa6;
$custom-light: #cb73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af2aa6",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 304.06,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54153,
    "c": 0.21296,
    "h": 331.1
  },
  "luminance": 0.13523
}

Semantic roles & 50–950 ramp

primary
#AF2AA6
secondary
#6FC675
accent
#E44E43
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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