#AF408C#AF408C

#AF408C is a mid, vivid pink. Relative luminance 0.147; OKLCH L 54.9% C 0.167 H 342.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#AF408C
RGBrgb(175, 64, 140)
HSLhsl(319, 46%, 47%)
HSVhsv(319, 63%, 69%)
CMYKcmyk(0%, 63.4%, 20%, 31.4%)
CIE-LABlab(45.19, 53.37, -19.16)
CIE-LCHlch(45.19, 56.70, 340.25°)
OKLaboklab(54.95% 0.1594 -0.0513)
OKLCHoklch(54.95% 0.167 342.2)
XYZxyz(24.2469, 14.6764, 26.3617)
Luminance0.1467 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF408C #40AF63
analogous
#9B40AF #AF408C #AF4054
triadic
#AF408C #8CAF40 #408CAF
tetradic
#AF408C #AF9B40 #40AF63 #4054AF
square
#AF408C #AF9B40 #40AF63 #4054AF
split-complementary
#AF408C #54AF40 #40AF9B
monochromatic
#551F44 #823068 #AF408C #C765A8 #D792C1

Accessibility & contrast

On white

5.34
#AF408C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#AF408C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF408C
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF408C#FFFFFF#000000##FFFFFF
##AF408C1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485F8E
Deuteranopia (green-blind)
#697289
Tritanopia (blue-blind)
#B94160
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af408c;
/* rgb */ color: rgb(175, 64, 140);
/* oklch */ color: oklch(54.9% 0.167 342.2);
Tailwind
colors: {
  custom: {
    50: '#ca7cad',
    500: '#af408c',
    950: '#000000',
  },
}
SCSS
$custom: #af408c;
$custom-light: #ca7cad;
$custom-dark: #000000;
JSON
{
  "hex": "#af408c",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 318.919,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54946,
    "c": 0.16745,
    "h": 342.2
  },
  "luminance": 0.14674
}

Semantic roles & 50–950 ramp

primary
#AF408C
secondary
#88C39B
accent
#D67B52
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF408C

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

Preview Lab → · Contrast checker → · Palette generator →

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