#AF2B8F#AF2B8F

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

Color values

HEX#AF2B8F
RGBrgb(175, 43, 143)
HSLhsl(315, 61%, 43%)
HSVhsv(315, 75%, 69%)
CMYKcmyk(0%, 75.4%, 18.3%, 31.4%)
CIE-LABlab(42.50, 61.66, -25.13)
CIE-LCHlch(42.50, 66.59, 337.83°)
OKLaboklab(53.03% 0.1838 -0.0679)
OKLCHoklch(53.03% 0.196 339.7)
XYZxyz(23.5016, 12.8272, 27.2195)
Luminance0.1283 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B8F #2BAF4B
analogous
#8D2BAF #AF2B8F #AF2B4D
triadic
#AF2B8F #8FAF2B #2B8FAF
tetradic
#AF2B8F #AF8D2B #2BAF4B #2B4DAF
square
#AF2B8F #AF8D2B #2BAF4B #2B4DAF
split-complementary
#AF2B8F #4DAF2B #2BAF8D
monochromatic
#4D133F #7E1F67 #AF2B8F #D146B0 #DE77C5

Accessibility & contrast

On white

5.89
#AF2B8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AF2B8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2B8F
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B8F#FFFFFF#000000##FFFFFF
##AF2B8F1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345792
Deuteranopia (green-blind)
#5F6C8C
Tritanopia (blue-blind)
#B9305A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2b8f;
/* rgb */ color: rgb(175, 43, 143);
/* oklch */ color: oklch(53.0% 0.196 339.7);
Tailwind
colors: {
  custom: {
    50: '#cb72b0',
    500: '#af2b8f',
    950: '#000000',
  },
}
SCSS
$custom: #af2b8f;
$custom-light: #cb72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b8f",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 143
  },
  "hsl": {
    "h": 314.545,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53031,
    "c": 0.19592,
    "h": 339.7
  },
  "luminance": 0.12825
}

Semantic roles & 50–950 ramp

primary
#AF2B8F
secondary
#70C585
accent
#E46B44
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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