#AF38AC#AF38AC

#AF38AC is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.7% C 0.202 H 328.9°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#AF38AC
RGBrgb(175, 56, 172)
HSLhsl(302, 52%, 45%)
HSVhsv(302, 68%, 69%)
CMYKcmyk(0%, 68%, 1.7%, 31.4%)
CIE-LABlab(45.53, 61.60, -37.76)
CIE-LCHlch(45.53, 72.25, 328.49°)
OKLaboklab(55.68% 0.173 -0.1043)
OKLCHoklch(55.68% 0.202 328.9)
XYZxyz(26.5395, 14.9228, 40.5043)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38AC #38AF3B
analogous
#7738AF #AF38AC #AF3870
triadic
#AF38AC #ACAF38 #38ACAF
tetradic
#AF38AC #AF7738 #38AF3B #3870AF
square
#AF38AC #AF7738 #38AF3B #3870AF
split-complementary
#AF38AC #70AF38 #38AF77
monochromatic
#521A51 #81297E #AF38AC #CA5AC7 #D988D7

Accessibility & contrast

On white

5.27
#AF38AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#AF38AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38AC
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38AC#FFFFFF#000000##FFFFFF
##AF38AC1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2962AF
Deuteranopia (green-blind)
#5871A9
Tritanopia (blue-blind)
#B5486E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af38ac;
/* rgb */ color: rgb(175, 56, 172);
/* oklch */ color: oklch(55.7% 0.202 328.9);
Tailwind
colors: {
  custom: {
    50: '#ca79c5',
    500: '#af38ac',
    950: '#000000',
  },
}
SCSS
$custom: #af38ac;
$custom-light: #ca79c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af38ac",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 301.513,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55682,
    "c": 0.20202,
    "h": 328.9
  },
  "luminance": 0.14921
}

Semantic roles & 50–950 ramp

primary
#AF38AC
secondary
#80C381
accent
#DB504D
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF38AC

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

Preview Lab → · Contrast checker → · Palette generator →

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