#AF2A9C#AF2A9C

#AF2A9C is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.6% C 0.206 H 334.7°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AF2A9C
RGBrgb(175, 42, 156)
HSLhsl(309, 61%, 43%)
HSVhsv(309, 76%, 69%)
CMYKcmyk(0%, 76%, 10.9%, 31.4%)
CIE-LABlab(43.02, 63.84, -32.17)
CIE-LCHlch(43.02, 71.49, 333.26°)
OKLaboklab(53.61% 0.186 -0.088)
OKLCHoklch(53.61% 0.206 334.7)
XYZxyz(24.5082, 13.1724, 32.6978)
Luminance0.1317 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A9C #2AAF3D
analogous
#7F2AAF #AF2A9C #AF2A5A
triadic
#AF2A9C #9CAF2A #2A9CAF
tetradic
#AF2A9C #AF7F2A #2AAF3D #2A5AAF
square
#AF2A9C #AF7F2A #2AAF3D #2A5AAF
split-complementary
#AF2A9C #5AAF2A #2AAF7F
monochromatic
#4C1244 #7E1E70 #AF2A9C #D244BE #DE75CF

Accessibility & contrast

On white

5.78
#AF2A9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF2A9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A9C
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A9C#FFFFFF#000000##FFFFFF
##AF2A9C1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28599F
Deuteranopia (green-blind)
#5A6C99
Tritanopia (blue-blind)
#B83661
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2a9c;
/* rgb */ color: rgb(175, 42, 156);
/* oklch */ color: oklch(53.6% 0.206 334.7);
Tailwind
colors: {
  custom: {
    50: '#cb72b9',
    500: '#af2a9c',
    950: '#000000',
  },
}
SCSS
$custom: #af2a9c;
$custom-light: #cb72b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a9c",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 308.571,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5361,
    "c": 0.20578,
    "h": 334.7
  },
  "luminance": 0.1317
}

Semantic roles & 50–950 ramp

primary
#AF2A9C
secondary
#6FC67C
accent
#E45A43
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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