#AF3A8E#AF3A8E

#AF3A8E is a mid, vivid pink. Relative luminance 0.141; OKLCH L 54.4% C 0.177 H 340.8°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#AF3A8E
RGBrgb(175, 58, 142)
HSLhsl(317, 50%, 46%)
HSVhsv(317, 67%, 69%)
CMYKcmyk(0%, 66.9%, 18.9%, 31.4%)
CIE-LABlab(44.37, 56.15, -21.63)
CIE-LCHlch(44.37, 60.17, 338.94°)
OKLaboklab(54.37% 0.1674 -0.0581)
OKLCHoklch(54.37% 0.177 340.8)
XYZxyz(24.0754, 14.0953, 27.0387)
Luminance0.1409 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3A8E #3AAF5B
analogous
#953AAF #AF3A8E #AF3A53
triadic
#AF3A8E #8EAF3A #3A8EAF
tetradic
#AF3A8E #AF953A #3AAF5B #3A53AF
square
#AF3A8E #AF953A #3AAF5B #3A53AF
split-complementary
#AF3A8E #53AF3A #3AAF95
monochromatic
#531C43 #812B69 #AF3A8E #C95DAB #D98BC3

Accessibility & contrast

On white

5.50
#AF3A8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#AF3A8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3A8E
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3A8E#FFFFFF#000000##FFFFFF
##AF3A8E1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425D90
Deuteranopia (green-blind)
#66708B
Tritanopia (blue-blind)
#B93C5F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af3a8e;
/* rgb */ color: rgb(175, 58, 142);
/* oklch */ color: oklch(54.4% 0.177 340.8);
Tailwind
colors: {
  custom: {
    50: '#ca79af',
    500: '#af3a8e',
    950: '#000000',
  },
}
SCSS
$custom: #af3a8e;
$custom-light: #ca79af;
$custom-dark: #000000;
JSON
{
  "hex": "#af3a8e",
  "rgb": {
    "r": 175,
    "g": 58,
    "b": 142
  },
  "hsl": {
    "h": 316.923,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54373,
    "c": 0.17716,
    "h": 340.8
  },
  "luminance": 0.14093
}

Semantic roles & 50–950 ramp

primary
#AF3A8E
secondary
#82C394
accent
#DA754E
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF3A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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