#AF2A8B#AF2A8B

#AF2A8B is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.8% C 0.194 H 341.3°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#AF2A8B
RGBrgb(175, 42, 139)
HSLhsl(316, 61%, 43%)
HSVhsv(316, 76%, 69%)
CMYKcmyk(0%, 76%, 20.6%, 31.4%)
CIE-LABlab(42.21, 61.43, -23.14)
CIE-LCHlch(42.21, 65.64, 339.36°)
OKLaboklab(52.76% 0.1842 -0.0623)
OKLCHoklch(52.76% 0.194 341.3)
XYZxyz(23.1681, 12.6363, 25.6400)
Luminance0.1263 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2A8B #2AAF4E
analogous
#912AAF #AF2A8B #AF2A48
triadic
#AF2A8B #8BAF2A #2A8BAF
tetradic
#AF2A8B #AF912A #2AAF4E #2A48AF
square
#AF2A8B #AF912A #2AAF4E #2A48AF
split-complementary
#AF2A8B #48AF2A #2AAF91
monochromatic
#4C123D #7E1E64 #AF2A8B #D244AC #DE75C2

Accessibility & contrast

On white

5.95
#AF2A8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AF2A8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2A8B
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2A8B#FFFFFF#000000##FFFFFF
##AF2A8B1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36568E
Deuteranopia (green-blind)
#616B88
Tritanopia (blue-blind)
#BA2D58
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2a8b;
/* rgb */ color: rgb(175, 42, 139);
/* oklch */ color: oklch(52.8% 0.194 341.3);
Tailwind
colors: {
  custom: {
    50: '#cb72ad',
    500: '#af2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #af2a8b;
$custom-light: #cb72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af2a8b",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 316.241,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5276,
    "c": 0.1944,
    "h": 341.3
  },
  "luminance": 0.12634
}

Semantic roles & 50–950 ramp

primary
#AF2A8B
secondary
#6FC687
accent
#E46F43
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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