#AF4182#AF4182

#AF4182 is a mid, vivid pink. Relative luminance 0.145; OKLCH L 54.6% C 0.160 H 347.2°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AF4182
RGBrgb(175, 65, 130)
HSLhsl(325, 46%, 47%)
HSVhsv(325, 63%, 69%)
CMYKcmyk(0%, 62.9%, 25.7%, 31.4%)
CIE-LABlab(44.95, 51.53, -13.45)
CIE-LCHlch(44.95, 53.26, 345.37°)
OKLaboklab(54.64% 0.1557 -0.0354)
OKLCHoklch(54.64% 0.16 347.2)
XYZxyz(23.5997, 14.5086, 22.6723)
Luminance0.1451 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4182 #41AF6E
analogous
#A541AF #AF4182 #AF414B
triadic
#AF4182 #82AF41 #4182AF
tetradic
#AF4182 #AFA541 #41AF6E #414BAF
square
#AF4182 #AFA541 #41AF6E #414BAF
split-complementary
#AF4182 #4BAF41 #41AFA5
monochromatic
#562040 #823061 #AF4182 #C6679F #D793BB

Accessibility & contrast

On white

5.38
#AF4182 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#AF4182 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4182
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4182#FFFFFF#000000##FFFFFF
##AF41821.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5E84
Deuteranopia (green-blind)
#6D717F
Tritanopia (blue-blind)
#BB3E5C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af4182;
/* rgb */ color: rgb(175, 65, 130);
/* oklch */ color: oklch(54.6% 0.160 347.2);
Tailwind
colors: {
  custom: {
    50: '#ca7ca6',
    500: '#af4182',
    950: '#000000',
  },
}
SCSS
$custom: #af4182;
$custom-light: #ca7ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#af4182",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 130
  },
  "hsl": {
    "h": 324.545,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.54644,
    "c": 0.15969,
    "h": 347.2
  },
  "luminance": 0.14506
}

Semantic roles & 50–950 ramp

primary
#AF4182
secondary
#89C2A1
accent
#D58852
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A0F
muted
#827C7F

Preview Lab

Preview with #AF4182

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

Preview Lab → · Contrast checker → · Palette generator →

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