#AF2FA2#AF2FA2

#AF2FA2 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.3% C 0.205 H 332.5°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#AF2FA2
RGBrgb(175, 47, 162)
HSLhsl(306, 58%, 44%)
HSVhsv(306, 73%, 69%)
CMYKcmyk(0%, 73.1%, 7.4%, 31.4%)
CIE-LABlab(43.88, 63.17, -34.41)
CIE-LCHlch(43.88, 71.93, 331.42°)
OKLaboklab(54.33% 0.1817 -0.0945)
OKLCHoklch(54.33% 0.205 332.5)
XYZxyz(25.2174, 13.7577, 35.5028)
Luminance0.1376 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FA2 #2FAF3C
analogous
#7C2FAF #AF2FA2 #AF2F62
triadic
#AF2FA2 #A2AF2F #2FA2AF
tetradic
#AF2FA2 #AF7C2F #2FAF3C #2F62AF
square
#AF2FA2 #AF7C2F #2FAF3C #2F62AF
split-complementary
#AF2FA2 #62AF2F #2FAF7C
monochromatic
#4F1549 #7F2275 #AF2FA2 #CF4CC2 #DC7CD2

Accessibility & contrast

On white

5.60
#AF2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#AF2FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FA2
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FA2#FFFFFF#000000##FFFFFF
##AF2FA21.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285CA5
Deuteranopia (green-blind)
#596E9F
Tritanopia (blue-blind)
#B73D65
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2fa2;
/* rgb */ color: rgb(175, 47, 162);
/* oklch */ color: oklch(54.3% 0.205 332.5);
Tailwind
colors: {
  custom: {
    50: '#cb74be',
    500: '#af2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #af2fa2;
$custom-light: #cb74be;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fa2",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 306.094,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54329,
    "c": 0.20483,
    "h": 332.5
  },
  "luminance": 0.13756
}

Semantic roles & 50–950 ramp

primary
#AF2FA2
secondary
#75C47D
accent
#E15747
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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