#AF2B8E#AF2B8E

#AF2B8E is a mid, vivid pink. Relative luminance 0.128; OKLCH L 53.0% C 0.195 H 340.1°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#AF2B8E
RGBrgb(175, 43, 142)
HSLhsl(315, 61%, 43%)
HSVhsv(315, 75%, 69%)
CMYKcmyk(0%, 75.4%, 18.9%, 31.4%)
CIE-LABlab(42.46, 61.53, -24.59)
CIE-LCHlch(42.46, 66.26, 338.22°)
OKLaboklab(52.98% 0.1836 -0.0664)
OKLCHoklch(52.98% 0.195 340.1)
XYZxyz(23.4262, 12.7970, 26.8223)
Luminance0.1280 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B8E #2BAF4C
analogous
#8E2BAF #AF2B8E #AF2B4C
triadic
#AF2B8E #8EAF2B #2B8EAF
tetradic
#AF2B8E #AF8E2B #2BAF4C #2B4CAF
square
#AF2B8E #AF8E2B #2BAF4C #2B4CAF
split-complementary
#AF2B8E #4CAF2B #2BAF8E
monochromatic
#4D133E #7E1F66 #AF2B8E #D146AF #DE77C4

Accessibility & contrast

On white

5.90
#AF2B8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AF2B8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2B8E
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B8E#FFFFFF#000000##FFFFFF
##AF2B8E1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355791
Deuteranopia (green-blind)
#606C8B
Tritanopia (blue-blind)
#B92F59
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2b8e;
/* rgb */ color: rgb(175, 43, 142);
/* oklch */ color: oklch(53.0% 0.195 340.1);
Tailwind
colors: {
  custom: {
    50: '#cb72af',
    500: '#af2b8e',
    950: '#000000',
  },
}
SCSS
$custom: #af2b8e;
$custom-light: #cb72af;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b8e",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 315,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.52982,
    "c": 0.19527,
    "h": 340.1
  },
  "luminance": 0.12795
}

Semantic roles & 50–950 ramp

primary
#AF2B8E
secondary
#70C586
accent
#E46C44
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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