#AF4099#AF4099

#AF4099 is a mid, vivid pink. Relative luminance 0.151; OKLCH L 55.5% C 0.177 H 336.3°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#AF4099
RGBrgb(175, 64, 153)
HSLhsl(312, 46%, 47%)
HSVhsv(312, 63%, 69%)
CMYKcmyk(0%, 63.4%, 12.6%, 31.4%)
CIE-LABlab(45.75, 55.33, -26.11)
CIE-LCHlch(45.75, 61.18, 334.74°)
OKLaboklab(55.54% 0.1618 -0.0709)
OKLCHoklch(55.54% 0.177 336.3)
XYZxyz(25.2627, 15.0827, 31.7115)
Luminance0.1508 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4099 #40AF56
analogous
#8E40AF #AF4099 #AF4062
triadic
#AF4099 #99AF40 #4099AF
tetradic
#AF4099 #AF8E40 #40AF56 #4062AF
square
#AF4099 #AF8E40 #40AF56 #4062AF
split-complementary
#AF4099 #62AF40 #40AF8E
monochromatic
#551F4B #823072 #AF4099 #C765B4 #D792CA

Accessibility & contrast

On white

5.23
#AF4099 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#AF4099 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4099
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4099#FFFFFF#000000##FFFFFF
##AF40991.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42629C
Deuteranopia (green-blind)
#657296
Tritanopia (blue-blind)
#B84667
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af4099;
/* rgb */ color: rgb(175, 64, 153);
/* oklch */ color: oklch(55.5% 0.177 336.3);
Tailwind
colors: {
  custom: {
    50: '#ca7cb7',
    500: '#af4099',
    950: '#000000',
  },
}
SCSS
$custom: #af4099;
$custom-light: #ca7cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#af4099",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 153
  },
  "hsl": {
    "h": 311.892,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.55539,
    "c": 0.17668,
    "h": 336.3
  },
  "luminance": 0.15081
}

Semantic roles & 50–950 ramp

primary
#AF4099
secondary
#88C394
accent
#D66C52
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A11
muted
#827C80

Preview Lab

Preview with #AF4099

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

Preview Lab → · Contrast checker → · Palette generator →

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