#AF2A8E#AF2A8E

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

Color values

HEX#AF2A8E
RGBrgb(175, 42, 142)
HSLhsl(315, 61%, 43%)
HSVhsv(315, 76%, 69%)
CMYKcmyk(0%, 76%, 18.9%, 31.4%)
CIE-LABlab(42.35, 61.84, -24.76)
CIE-LCHlch(42.35, 66.61, 338.18°)
OKLaboklab(52.9% 0.1846 -0.0669)
OKLCHoklch(52.9% 0.196 340.1)
XYZxyz(23.3903, 12.7252, 26.8103)
Luminance0.1272 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A8E #2AAF4B
analogous
#8D2AAF #AF2A8E #AF2A4C
triadic
#AF2A8E #8EAF2A #2A8EAF
tetradic
#AF2A8E #AF8D2A #2AAF4B #2A4CAF
square
#AF2A8E #AF8D2A #2AAF4B #2A4CAF
split-complementary
#AF2A8E #4CAF2A #2AAF8D
monochromatic
#4C123E #7E1E66 #AF2A8E #D244AF #DE75C4

Accessibility & contrast

On white

5.92
#AF2A8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2A8E
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A8E#FFFFFF#000000##FFFFFF
##AF2A8E1.005.923.545.92
#FFFFFF5.921.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2a8e;
/* rgb */ color: rgb(175, 42, 142);
/* oklch */ color: oklch(52.9% 0.196 340.1);
Tailwind
colors: {
  custom: {
    50: '#cb72af',
    500: '#af2a8e',
    950: '#000000',
  },
}
SCSS
$custom: #af2a8e;
$custom-light: #cb72af;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a8e",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 314.887,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52903,
    "c": 0.19632,
    "h": 340.1
  },
  "luminance": 0.12723
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF2A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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