#AF3781#AF3781

#AF3781 is a mid, vivid pink. Relative luminance 0.134; OKLCH L 53.5% C 0.173 H 346.6°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#AF3781
RGBrgb(175, 55, 129)
HSLhsl(323, 52%, 45%)
HSVhsv(323, 69%, 69%)
CMYKcmyk(0%, 68.6%, 26.3%, 31.4%)
CIE-LABlab(43.41, 55.54, -15.19)
CIE-LCHlch(43.41, 57.58, 344.71°)
OKLaboklab(53.5% 0.1682 -0.0401)
OKLCHoklch(53.5% 0.173 346.6)
XYZxyz(23.0088, 13.4337, 22.1459)
Luminance0.1343 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3781 #37AF65
analogous
#A137AF #AF3781 #AF3745
triadic
#AF3781 #81AF37 #3781AF
tetradic
#AF3781 #AFA137 #37AF65 #3745AF
square
#AF3781 #AFA137 #37AF65 #3745AF
split-complementary
#AF3781 #45AF37 #37AFA1
monochromatic
#521A3C #80285F #AF3781 #CB599F #D987BA

Accessibility & contrast

On white

5.70
#AF3781 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AF3781 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3781
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3781#FFFFFF#000000##FFFFFF
##AF37811.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465983
Deuteranopia (green-blind)
#696E7E
Tritanopia (blue-blind)
#BB3457
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af3781;
/* rgb */ color: rgb(175, 55, 129);
/* oklch */ color: oklch(53.5% 0.173 346.6);
Tailwind
colors: {
  custom: {
    50: '#cb77a5',
    500: '#af3781',
    950: '#000000',
  },
}
SCSS
$custom: #af3781;
$custom-light: #cb77a5;
$custom-dark: #000000;
JSON
{
  "hex": "#af3781",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 129
  },
  "hsl": {
    "h": 323,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.53497,
    "c": 0.17295,
    "h": 346.6
  },
  "luminance": 0.13431
}

Semantic roles & 50–950 ramp

primary
#AF3781
secondary
#7FC399
accent
#DC834C
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#14090F
muted
#827B7F

Preview Lab

Preview with #AF3781

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

Preview Lab → · Contrast checker → · Palette generator →

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