#AF2F8B#AF2F8B

#AF2F8B is a mid, vivid pink. Relative luminance 0.130; OKLCH L 53.2% C 0.189 H 341.5°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#AF2F8B
RGBrgb(175, 47, 139)
HSLhsl(317, 58%, 44%)
HSVhsv(317, 73%, 69%)
CMYKcmyk(0%, 73.1%, 20.6%, 31.4%)
CIE-LABlab(42.78, 59.80, -22.25)
CIE-LCHlch(42.78, 63.81, 339.59°)
OKLaboklab(53.18% 0.1792 -0.0598)
OKLCHoklch(53.18% 0.189 341.5)
XYZxyz(23.3566, 13.0134, 25.7029)
Luminance0.1301 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F8B #2FAF53
analogous
#932FAF #AF2F8B #AF2F4B
triadic
#AF2F8B #8BAF2F #2F8BAF
tetradic
#AF2F8B #AF932F #2FAF53 #2F4BAF
square
#AF2F8B #AF932F #2FAF53 #2F4BAF
split-complementary
#AF2F8B #4BAF2F #2FAF93
monochromatic
#4F153E #7F2265 #AF2F8B #CF4CAA #DC7CC1

Accessibility & contrast

On white

5.83
#AF2F8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AF2F8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F8B
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F8B#FFFFFF#000000##FFFFFF
##AF2F8B1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A588E
Deuteranopia (green-blind)
#626C88
Tritanopia (blue-blind)
#BA3159
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2f8b;
/* rgb */ color: rgb(175, 47, 139);
/* oklch */ color: oklch(53.2% 0.189 341.5);
Tailwind
colors: {
  custom: {
    50: '#cb74ad',
    500: '#af2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #af2f8b;
$custom-light: #cb74ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f8b",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 316.875,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53176,
    "c": 0.18891,
    "h": 341.5
  },
  "luminance": 0.13011
}

Semantic roles & 50–950 ramp

primary
#AF2F8B
secondary
#75C48C
accent
#E17247
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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