#AF2A8D#AF2A8D

#AF2A8D is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.9% C 0.196 H 340.5°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#AF2A8D
RGBrgb(175, 42, 141)
HSLhsl(315, 61%, 43%)
HSVhsv(315, 76%, 69%)
CMYKcmyk(0%, 76%, 19.4%, 31.4%)
CIE-LABlab(42.30, 61.70, -24.22)
CIE-LCHlch(42.30, 66.28, 338.57°)
OKLaboklab(52.86% 0.1845 -0.0653)
OKLCHoklch(52.86% 0.196 340.5)
XYZxyz(23.3156, 12.6953, 26.4167)
Luminance0.1269 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A8D #2AAF4C
analogous
#8E2AAF #AF2A8D #AF2A4B
triadic
#AF2A8D #8DAF2A #2A8DAF
tetradic
#AF2A8D #AF8E2A #2AAF4C #2A4BAF
square
#AF2A8D #AF8E2A #2AAF4C #2A4BAF
split-complementary
#AF2A8D #4BAF2A #2AAF8E
monochromatic
#4C123D #7E1E65 #AF2A8D #D244AE #DE75C3

Accessibility & contrast

On white

5.93
#AF2A8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AF2A8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A8D
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A8D#FFFFFF#000000##FFFFFF
##AF2A8D1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355690
Deuteranopia (green-blind)
#606B8A
Tritanopia (blue-blind)
#BA2E59
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2a8d;
/* rgb */ color: rgb(175, 42, 141);
/* oklch */ color: oklch(52.9% 0.196 340.5);
Tailwind
colors: {
  custom: {
    50: '#cb72ae',
    500: '#af2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #af2a8d;
$custom-light: #cb72ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a8d",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 315.338,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52855,
    "c": 0.19568,
    "h": 340.5
  },
  "luminance": 0.12693
}

Semantic roles & 50–950 ramp

primary
#AF2A8D
secondary
#6FC685
accent
#E46D43
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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