#AF2C8E#AF2C8E

#AF2C8E is a mid, vivid pink. Relative luminance 0.129; OKLCH L 53.1% C 0.194 H 340.2°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#AF2C8E
RGBrgb(175, 44, 142)
HSLhsl(315, 60%, 43%)
HSVhsv(315, 75%, 69%)
CMYKcmyk(0%, 74.9%, 18.9%, 31.4%)
CIE-LABlab(42.57, 61.21, -24.41)
CIE-LCHlch(42.57, 65.90, 338.25°)
OKLaboklab(53.06% 0.1827 -0.0659)
OKLCHoklch(53.06% 0.194 340.2)
XYZxyz(23.4630, 12.8706, 26.8345)
Luminance0.1287 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C8E #2CAF4D
analogous
#8F2CAF #AF2C8E #AF2C4C
triadic
#AF2C8E #8EAF2C #2C8EAF
tetradic
#AF2C8E #AF8F2C #2CAF4D #2C4CAF
square
#AF2C8E #AF8F2C #2CAF4D #2C4CAF
split-complementary
#AF2C8E #4CAF2C #2CAF8F
monochromatic
#4D133F #7E2066 #AF2C8E #D147AE #DD78C4

Accessibility & contrast

On white

5.88
#AF2C8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2C8E
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C8E#FFFFFF#000000##FFFFFF
##AF2C8E1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2c8e;
/* rgb */ color: rgb(175, 44, 142);
/* oklch */ color: oklch(53.1% 0.194 340.2);
Tailwind
colors: {
  custom: {
    50: '#cb72af',
    500: '#af2c8e',
    950: '#000000',
  },
}
SCSS
$custom: #af2c8e;
$custom-light: #cb72af;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c8e",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 315.115,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53063,
    "c": 0.1942,
    "h": 340.2
  },
  "luminance": 0.12868
}

Semantic roles & 50–950 ramp

primary
#AF2C8E
secondary
#72C587
accent
#E36D45
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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