#AF2082#AF2082

#AF2082 is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.6% C 0.198 H 344.6°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#AF2082
RGBrgb(175, 32, 130)
HSLhsl(319, 69%, 41%)
HSVhsv(319, 82%, 69%)
CMYKcmyk(0%, 81.7%, 25.7%, 31.4%)
CIE-LABlab(40.83, 63.07, -19.75)
CIE-LCHlch(40.83, 66.09, 342.61°)
OKLaboklab(51.64% 0.1913 -0.0527)
OKLCHoklch(51.64% 0.198 344.6)
XYZxyz(22.2260, 11.7612, 22.2144)
Luminance0.1176 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2082 #20AF4D
analogous
#9420AF #AF2082 #AF203B
triadic
#AF2082 #82AF20 #2082AF
tetradic
#AF2082 #AF9420 #20AF4D #203BAF
square
#AF2082 #AF9420 #20AF4D #203BAF
split-complementary
#AF2082 #3BAF20 #20AF94
monochromatic
#480D35 #7B175C #AF2082 #DA33A5 #E366BC

Accessibility & contrast

On white

6.27
#AF2082 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#AF2082 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2082
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2082#FFFFFF#000000##FFFFFF
##AF20821.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345184
Deuteranopia (green-blind)
#61697F
Tritanopia (blue-blind)
#BB1E50
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2082;
/* rgb */ color: rgb(175, 32, 130);
/* oklch */ color: oklch(51.6% 0.198 344.6);
Tailwind
colors: {
  custom: {
    50: '#cb6ea6',
    500: '#af2082',
    950: '#000000',
  },
}
SCSS
$custom: #af2082;
$custom-light: #cb6ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2082",
  "rgb": {
    "r": 175,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 318.881,
    "s": 69.082,
    "l": 40.588
  },
  "oklch": {
    "l": 0.51636,
    "c": 0.19845,
    "h": 344.6
  },
  "luminance": 0.11759
}

Semantic roles & 50–950 ramp

primary
#AF2082
secondary
#62C882
accent
#EC733C
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14080F
muted
#837B7F

Preview Lab

Preview with #AF2082

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

Preview Lab → · Contrast checker → · Palette generator →

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