#AF2FA9#AF2FA9

#AF2FA9 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.7% C 0.210 H 330.0°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#AF2FA9
RGBrgb(175, 47, 169)
HSLhsl(303, 58%, 44%)
HSVhsv(303, 73%, 69%)
CMYKcmyk(0%, 73.1%, 3.4%, 31.4%)
CIE-LABlab(44.25, 64.27, -38.00)
CIE-LCHlch(44.25, 74.66, 329.41°)
OKLaboklab(54.71% 0.182 -0.1049)
OKLCHoklch(54.71% 0.21 330)
XYZxyz(25.8570, 14.0136, 38.8715)
Luminance0.1401 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FA9 #2FAF35
analogous
#752FAF #AF2FA9 #AF2F69
triadic
#AF2FA9 #A9AF2F #2FA9AF
tetradic
#AF2FA9 #AF752F #2FAF35 #2F69AF
square
#AF2FA9 #AF752F #2FAF35 #2F69AF
split-complementary
#AF2FA9 #69AF2F #2FAF75
monochromatic
#4F154C #7F227A #AF2FA9 #CF4CC9 #DC7CD7

Accessibility & contrast

On white

5.52
#AF2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#AF2FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FA9
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FA9#FFFFFF#000000##FFFFFF
##AF2FA91.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5EAC
Deuteranopia (green-blind)
#556FA6
Tritanopia (blue-blind)
#B64069
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2fa9;
/* rgb */ color: rgb(175, 47, 169);
/* oklch */ color: oklch(54.7% 0.210 330.0);
Tailwind
colors: {
  custom: {
    50: '#cb75c3',
    500: '#af2fa9',
    950: '#000000',
  },
}
SCSS
$custom: #af2fa9;
$custom-light: #cb75c3;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fa9",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 302.813,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54713,
    "c": 0.21005,
    "h": 330
  },
  "luminance": 0.14012
}

Semantic roles & 50–950 ramp

primary
#AF2FA9
secondary
#75C479
accent
#E14E47
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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