#AF388B#AF388B

#AF388B is a mid, vivid pink. Relative luminance 0.138; OKLCH L 54.0% C 0.178 H 342.1°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AF388B
RGBrgb(175, 56, 139)
HSLhsl(318, 52%, 45%)
HSVhsv(318, 68%, 69%)
CMYKcmyk(0%, 68%, 20.6%, 31.4%)
CIE-LABlab(43.96, 56.51, -20.44)
CIE-LCHlch(43.96, 60.09, 340.11°)
OKLaboklab(54.03% 0.1692 -0.0548)
OKLCHoklch(54.03% 0.178 342.1)
XYZxyz(23.7543, 13.8087, 25.8354)
Luminance0.1381 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF388B #38AF5C
analogous
#9738AF #AF388B #AF3850
triadic
#AF388B #8BAF38 #388BAF
tetradic
#AF388B #AF9738 #38AF5C #3850AF
square
#AF388B #AF9738 #38AF5C #3850AF
split-complementary
#AF388B #50AF38 #38AF97
monochromatic
#521A41 #812966 #AF388B #CA5AA8 #D988C1

Accessibility & contrast

On white

5.58
#AF388B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AF388B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF388B
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF388B#FFFFFF#000000##FFFFFF
##AF388B1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425B8D
Deuteranopia (green-blind)
#666F88
Tritanopia (blue-blind)
#BA395C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af388b;
/* rgb */ color: rgb(175, 56, 139);
/* oklch */ color: oklch(54.0% 0.178 342.1);
Tailwind
colors: {
  custom: {
    50: '#ca78ad',
    500: '#af388b',
    950: '#000000',
  },
}
SCSS
$custom: #af388b;
$custom-light: #ca78ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af388b",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 139
  },
  "hsl": {
    "h": 318.151,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.54031,
    "c": 0.17782,
    "h": 342.1
  },
  "luminance": 0.13806
}

Semantic roles & 50–950 ramp

primary
#AF388B
secondary
#80C394
accent
#DB784D
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF388B

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

Preview Lab → · Contrast checker → · Palette generator →

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