#AF38AE#AF38AE

#AF38AE is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 55.8% C 0.204 H 328.2°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#AF38AE
RGBrgb(175, 56, 174)
HSLhsl(301, 52%, 45%)
HSVhsv(301, 68%, 69%)
CMYKcmyk(0%, 68%, 0.6%, 31.4%)
CIE-LABlab(45.63, 61.93, -38.77)
CIE-LCHlch(45.63, 73.07, 327.95°)
OKLaboklab(55.79% 0.1731 -0.1072)
OKLCHoklch(55.79% 0.204 328.2)
XYZxyz(26.7330, 15.0002, 41.5235)
Luminance0.1500 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38AE #38AF39
analogous
#7438AF #AF38AE #AF3873
triadic
#AF38AE #AEAF38 #38AEAF
tetradic
#AF38AE #AF7438 #38AF39 #3873AF
square
#AF38AE #AF7438 #38AF39 #3873AF
split-complementary
#AF38AE #73AF38 #38AF74
monochromatic
#521A52 #812980 #AF38AE #CA5AC9 #D988D8

Accessibility & contrast

On white

5.25
#AF38AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#AF38AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38AE
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38AE#FFFFFF#000000##FFFFFF
##AF38AE1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2762B1
Deuteranopia (green-blind)
#5772AB
Tritanopia (blue-blind)
#B5486F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af38ae;
/* rgb */ color: rgb(175, 56, 174);
/* oklch */ color: oklch(55.8% 0.204 328.2);
Tailwind
colors: {
  custom: {
    50: '#ca79c6',
    500: '#af38ae',
    950: '#000000',
  },
}
SCSS
$custom: #af38ae;
$custom-light: #ca79c6;
$custom-dark: #000000;
JSON
{
  "hex": "#af38ae",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 300.504,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55793,
    "c": 0.20361,
    "h": 328.2
  },
  "luminance": 0.14998
}

Semantic roles & 50–950 ramp

primary
#AF38AE
secondary
#80C380
accent
#DB4E4D
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF38AE

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

Preview Lab → · Contrast checker → · Palette generator →

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