#AF2F8E#AF2F8E

#AF2F8E is a mid, vivid pink. Relative luminance 0.131; OKLCH L 53.3% C 0.191 H 340.3°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#AF2F8E
RGBrgb(175, 47, 142)
HSLhsl(315, 58%, 44%)
HSVhsv(315, 73%, 69%)
CMYKcmyk(0%, 73.1%, 18.9%, 31.4%)
CIE-LABlab(42.92, 60.22, -23.87)
CIE-LCHlch(42.92, 64.78, 338.37°)
OKLaboklab(53.32% 0.1797 -0.0644)
OKLCHoklch(53.32% 0.191 340.3)
XYZxyz(23.5789, 13.1023, 26.8732)
Luminance0.1310 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F8E #2FAF50
analogous
#902FAF #AF2F8E #AF2F4E
triadic
#AF2F8E #8EAF2F #2F8EAF
tetradic
#AF2F8E #AF902F #2FAF50 #2F4EAF
square
#AF2F8E #AF902F #2FAF50 #2F4EAF
split-complementary
#AF2F8E #4EAF2F #2FAF90
monochromatic
#4F1540 #7F2267 #AF2F8E #CF4CAD #DC7CC3

Accessibility & contrast

On white

5.80
#AF2F8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AF2F8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F8E
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F8E#FFFFFF#000000##FFFFFF
##AF2F8E1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385891
Deuteranopia (green-blind)
#616D8B
Tritanopia (blue-blind)
#B9335B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2f8e;
/* rgb */ color: rgb(175, 47, 142);
/* oklch */ color: oklch(53.3% 0.191 340.3);
Tailwind
colors: {
  custom: {
    50: '#cb74af',
    500: '#af2f8e',
    950: '#000000',
  },
}
SCSS
$custom: #af2f8e;
$custom-light: #cb74af;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f8e",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 315.469,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53316,
    "c": 0.19086,
    "h": 340.3
  },
  "luminance": 0.131
}

Semantic roles & 50–950 ramp

primary
#AF2F8E
secondary
#75C48A
accent
#E16F47
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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