#AF3F8E#AF3F8E

#AF3F8E is a mid, vivid pink. Relative luminance 0.146; OKLCH L 54.9% C 0.170 H 341.2°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#AF3F8E
RGBrgb(175, 63, 142)
HSLhsl(318, 47%, 47%)
HSVhsv(318, 64%, 69%)
CMYKcmyk(0%, 64%, 18.9%, 31.4%)
CIE-LABlab(45.12, 54.09, -20.48)
CIE-LCHlch(45.12, 57.83, 339.26°)
OKLaboklab(54.92% 0.1611 -0.0549)
OKLCHoklch(54.92% 0.17 341.2)
XYZxyz(24.3398, 14.6242, 27.1268)
Luminance0.1462 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3F8E #3FAF60
analogous
#983FAF #AF3F8E #AF3F56
triadic
#AF3F8E #8EAF3F #3F8EAF
tetradic
#AF3F8E #AF983F #3FAF60 #3F56AF
square
#AF3F8E #AF983F #3FAF60 #3F56AF
split-complementary
#AF3F8E #56AF3F #3FAF98
monochromatic
#551F45 #822F69 #AF3F8E #C764AA #D791C3

Accessibility & contrast

On white

5.35
#AF3F8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#AF3F8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3F8E
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3F8E#FFFFFF#000000##FFFFFF
##AF3F8E1.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475F90
Deuteranopia (green-blind)
#68718B
Tritanopia (blue-blind)
#B94161
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af3f8e;
/* rgb */ color: rgb(175, 63, 142);
/* oklch */ color: oklch(54.9% 0.170 341.2);
Tailwind
colors: {
  custom: {
    50: '#ca7baf',
    500: '#af3f8e',
    950: '#000000',
  },
}
SCSS
$custom: #af3f8e;
$custom-light: #ca7baf;
$custom-dark: #000000;
JSON
{
  "hex": "#af3f8e",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 142
  },
  "hsl": {
    "h": 317.679,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54919,
    "c": 0.17023,
    "h": 341.2
  },
  "luminance": 0.14622
}

Semantic roles & 50–950 ramp

primary
#AF3F8E
secondary
#87C399
accent
#D77851
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF3F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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