#AF2AAF#AF2AAF

#AF2AAF is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.7% C 0.220 H 328.1°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#AF2AAF
RGBrgb(175, 42, 175)
HSLhsl(300, 61%, 43%)
HSVhsv(300, 76%, 69%)
CMYKcmyk(0%, 76%, 0%, 31.4%)
CIE-LABlab(44.04, 66.79, -41.89)
CIE-LCHlch(44.04, 78.84, 327.91°)
OKLaboklab(54.67% 0.1864 -0.1161)
OKLCHoklch(54.67% 0.22 328.1)
XYZxyz(26.2447, 13.8670, 41.8434)
Luminance0.1386 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AAF #2AAF2A
analogous
#6C2AAF #AF2AAF #AF2A6C
triadic
#AF2AAF #AFAF2A #2AAFAF
tetradic
#AF2AAF #AF6C2A #2AAF2A #2A6CAF
square
#AF2AAF #AF6C2A #2AAF2A #2A6CAF
split-complementary
#AF2AAF #6CAF2A #2AAF6C
monochromatic
#4C124C #7E1E7E #AF2AAF #D244D2 #DE75DE

Accessibility & contrast

On white

5.57
#AF2AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#AF2AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2AAF
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AAF#FFFFFF#000000##FFFFFF
##AF2AAF1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065DB3
Deuteranopia (green-blind)
#506EAC
Tritanopia (blue-blind)
#B5406B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2aaf;
/* rgb */ color: rgb(175, 42, 175);
/* oklch */ color: oklch(54.7% 0.220 328.1);
Tailwind
colors: {
  custom: {
    50: '#cb73c7',
    500: '#af2aaf',
    950: '#000000',
  },
}
SCSS
$custom: #af2aaf;
$custom-light: #cb73c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af2aaf",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54669,
    "c": 0.21963,
    "h": 328.1
  },
  "luminance": 0.13865
}

Semantic roles & 50–950 ramp

primary
#AF2AAF
secondary
#6FC66F
accent
#E44343
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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