#AF398C#AF398C

#AF398C is a mid, vivid pink. Relative luminance 0.139; OKLCH L 54.2% C 0.177 H 341.7°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#AF398C
RGBrgb(175, 57, 140)
HSLhsl(318, 51%, 45%)
HSVhsv(318, 67%, 69%)
CMYKcmyk(0%, 67.4%, 20%, 31.4%)
CIE-LABlab(44.14, 56.26, -20.77)
CIE-LCHlch(44.14, 59.97, 339.74°)
OKLaboklab(54.18% 0.1682 -0.0557)
OKLCHoklch(54.18% 0.177 341.7)
XYZxyz(23.8766, 13.9359, 26.2383)
Luminance0.1393 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF398C #39AF5C
analogous
#9739AF #AF398C #AF3951
triadic
#AF398C #8CAF39 #398CAF
tetradic
#AF398C #AF9739 #39AF5C #3951AF
square
#AF398C #AF9739 #39AF5C #3951AF
split-complementary
#AF398C #51AF39 #39AF97
monochromatic
#531B42 #812A67 #AF398C #CA5BA9 #D98AC1

Accessibility & contrast

On white

5.55
#AF398C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#AF398C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF398C
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF398C#FFFFFF#000000##FFFFFF
##AF398C1.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425C8E
Deuteranopia (green-blind)
#666F89
Tritanopia (blue-blind)
#BA3B5D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af398c;
/* rgb */ color: rgb(175, 57, 140);
/* oklch */ color: oklch(54.2% 0.177 341.7);
Tailwind
colors: {
  custom: {
    50: '#ca78ad',
    500: '#af398c',
    950: '#000000',
  },
}
SCSS
$custom: #af398c;
$custom-light: #ca78ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af398c",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 140
  },
  "hsl": {
    "h": 317.797,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54179,
    "c": 0.17716,
    "h": 341.7
  },
  "luminance": 0.13934
}

Semantic roles & 50–950 ramp

primary
#AF398C
secondary
#81C394
accent
#DA774D
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF398C

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

Preview Lab → · Contrast checker → · Palette generator →

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