#AF398D#AF398D

#AF398D is a mid, vivid pink. Relative luminance 0.140; OKLCH L 54.2% C 0.178 H 341.2°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AF398D
RGBrgb(175, 57, 141)
HSLhsl(317, 51%, 45%)
HSVhsv(317, 67%, 69%)
CMYKcmyk(0%, 67.4%, 19.4%, 31.4%)
CIE-LABlab(44.18, 56.40, -21.31)
CIE-LCHlch(44.18, 60.29, 339.30°)
OKLaboklab(54.22% 0.1684 -0.0572)
OKLCHoklch(54.22% 0.178 341.2)
XYZxyz(23.9507, 13.9656, 26.6284)
Luminance0.1396 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF398D #39AF5B
analogous
#9639AF #AF398D #AF3952
triadic
#AF398D #8DAF39 #398DAF
tetradic
#AF398D #AF9639 #39AF5B #3952AF
square
#AF398D #AF9639 #39AF5B #3952AF
split-complementary
#AF398D #52AF39 #39AF96
monochromatic
#531B43 #812A68 #AF398D #CA5BAA #D98AC2

Accessibility & contrast

On white

5.54
#AF398D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF398D
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF398D#FFFFFF#000000##FFFFFF
##AF398D1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425C8F
Deuteranopia (green-blind)
#666F8A
Tritanopia (blue-blind)
#B93B5E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af398d;
/* rgb */ color: rgb(175, 57, 141);
/* oklch */ color: oklch(54.2% 0.178 341.2);
Tailwind
colors: {
  custom: {
    50: '#ca78ae',
    500: '#af398d',
    950: '#000000',
  },
}
SCSS
$custom: #af398d;
$custom-light: #ca78ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af398d",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 317.288,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54224,
    "c": 0.17782,
    "h": 341.2
  },
  "luminance": 0.13963
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF398D

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

Preview Lab → · Contrast checker → · Palette generator →

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