#AF4082#AF4082

#AF4082 is a mid, vivid pink. Relative luminance 0.144; OKLCH L 54.5% C 0.161 H 347.1°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#AF4082
RGBrgb(175, 64, 130)
HSLhsl(324, 46%, 47%)
HSVhsv(324, 63%, 69%)
CMYKcmyk(0%, 63.4%, 25.7%, 31.4%)
CIE-LABlab(44.79, 51.97, -13.69)
CIE-LCHlch(44.79, 53.74, 345.24°)
OKLaboklab(54.53% 0.1571 -0.0361)
OKLCHoklch(54.53% 0.161 347.1)
XYZxyz(23.5428, 14.3948, 22.6534)
Luminance0.1439 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4082 #40AF6D
analogous
#A540AF #AF4082 #AF404B
triadic
#AF4082 #82AF40 #4082AF
tetradic
#AF4082 #AFA540 #40AF6D #404BAF
square
#AF4082 #AFA540 #40AF6D #404BAF
split-complementary
#AF4082 #4BAF40 #40AFA5
monochromatic
#551F3F #823061 #AF4082 #C7659F #D792BB

Accessibility & contrast

On white

5.41
#AF4082 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#AF4082 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4082
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4082#FFFFFF#000000##FFFFFF
##AF40821.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af4082;
/* rgb */ color: rgb(175, 64, 130);
/* oklch */ color: oklch(54.5% 0.161 347.1);
Tailwind
colors: {
  custom: {
    50: '#ca7ca6',
    500: '#af4082',
    950: '#000000',
  },
}
SCSS
$custom: #af4082;
$custom-light: #ca7ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#af4082",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 130
  },
  "hsl": {
    "h": 324.324,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54526,
    "c": 0.16114,
    "h": 347.1
  },
  "luminance": 0.14392
}

Semantic roles & 50–950 ramp

primary
#AF4082
secondary
#88C3A0
accent
#D68752
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A0F
muted
#827C7F

Preview Lab

Preview with #AF4082

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

Preview Lab → · Contrast checker → · Palette generator →

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