#AF398E#AF398E

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

Color values

HEX#AF398E
RGBrgb(175, 57, 142)
HSLhsl(317, 51%, 45%)
HSVhsv(317, 67%, 69%)
CMYKcmyk(0%, 67.4%, 18.9%, 31.4%)
CIE-LABlab(44.23, 56.54, -21.85)
CIE-LCHlch(44.23, 60.62, 338.88°)
OKLaboklab(54.27% 0.1686 -0.0587)
OKLCHoklch(54.27% 0.179 340.8)
XYZxyz(24.0254, 13.9955, 27.0220)
Luminance0.1399 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF398E #39AF5A
analogous
#9539AF #AF398E #AF3953
triadic
#AF398E #8EAF39 #398EAF
tetradic
#AF398E #AF9539 #39AF5A #3953AF
square
#AF398E #AF9539 #39AF5A #3953AF
split-complementary
#AF398E #53AF39 #39AF95
monochromatic
#531B43 #812A69 #AF398E #CA5BAB #D98AC3

Accessibility & contrast

On white

5.53
#AF398E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#AF398E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF398E
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF398E#FFFFFF#000000##FFFFFF
##AF398E1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415C90
Deuteranopia (green-blind)
#656F8B
Tritanopia (blue-blind)
#B93B5E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af398e;
/* rgb */ color: rgb(175, 57, 142);
/* oklch */ color: oklch(54.3% 0.178 340.8);
Tailwind
colors: {
  custom: {
    50: '#ca78af',
    500: '#af398e',
    950: '#000000',
  },
}
SCSS
$custom: #af398e;
$custom-light: #ca78af;
$custom-dark: #000000;
JSON
{
  "hex": "#af398e",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 316.78,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54269,
    "c": 0.1785,
    "h": 340.8
  },
  "luminance": 0.13993
}

Semantic roles & 50–950 ramp

primary
#AF398E
secondary
#81C393
accent
#DA754D
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF398E

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

Preview Lab → · Contrast checker → · Palette generator →

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