#AF3E98#AF3E98

#AF3E98 is a mid, vivid pink. Relative luminance 0.148; OKLCH L 55.3% C 0.179 H 336.7°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#AF3E98
RGBrgb(175, 62, 152)
HSLhsl(312, 48%, 46%)
HSVhsv(312, 65%, 69%)
CMYKcmyk(0%, 64.6%, 13.1%, 31.4%)
CIE-LABlab(45.40, 56.01, -26.05)
CIE-LCHlch(45.40, 61.77, 335.05°)
OKLaboklab(55.27% 0.1642 -0.0707)
OKLCHoklch(55.27% 0.179 336.7)
XYZxyz(25.0697, 14.8283, 31.2415)
Luminance0.1483 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3E98 #3EAF55
analogous
#8E3EAF #AF3E98 #AF3E60
triadic
#AF3E98 #98AF3E #3E98AF
tetradic
#AF3E98 #AF8E3E #3EAF55 #3E60AF
square
#AF3E98 #AF8E3E #3EAF55 #3E60AF
split-complementary
#AF3E98 #60AF3E #3EAF8E
monochromatic
#551E4A #822E71 #AF3E98 #C863B3 #D890C9

Accessibility & contrast

On white

5.30
#AF3E98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#AF3E98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3E98
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3E98#FFFFFF#000000##FFFFFF
##AF3E981.005.303.975.30
#FFFFFF5.301.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40609B
Deuteranopia (green-blind)
#647295
Tritanopia (blue-blind)
#B84465
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af3e98;
/* rgb */ color: rgb(175, 62, 152);
/* oklch */ color: oklch(55.3% 0.179 336.7);
Tailwind
colors: {
  custom: {
    50: '#ca7bb6',
    500: '#af3e98',
    950: '#000000',
  },
}
SCSS
$custom: #af3e98;
$custom-light: #ca7bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#af3e98",
  "rgb": {
    "r": 175,
    "g": 62,
    "b": 152
  },
  "hsl": {
    "h": 312.212,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55269,
    "c": 0.17875,
    "h": 336.7
  },
  "luminance": 0.14826
}

Semantic roles & 50–950 ramp

primary
#AF3E98
secondary
#86C392
accent
#D76C51
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A11
muted
#827C80

Preview Lab

Preview with #AF3E98

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

Preview Lab → · Contrast checker → · Palette generator →

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