#AF38AD#AF38AD

#AF38AD is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 55.7% C 0.203 H 328.6°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#AF38AD
RGBrgb(175, 56, 173)
HSLhsl(301, 52%, 45%)
HSVhsv(301, 68%, 69%)
CMYKcmyk(0%, 68%, 1.1%, 31.4%)
CIE-LABlab(45.58, 61.76, -38.26)
CIE-LCHlch(45.58, 72.66, 328.22°)
OKLaboklab(55.74% 0.1731 -0.1057)
OKLCHoklch(55.74% 0.203 328.6)
XYZxyz(26.6359, 14.9613, 41.0120)
Luminance0.1496 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38AD #38AF3A
analogous
#7538AF #AF38AD #AF3872
triadic
#AF38AD #ADAF38 #38ADAF
tetradic
#AF38AD #AF7538 #38AF3A #3872AF
square
#AF38AD #AF7538 #38AF3A #3872AF
split-complementary
#AF38AD #72AF38 #38AF75
monochromatic
#521A51 #81297F #AF38AD #CA5AC8 #D988D8

Accessibility & contrast

On white

5.26
#AF38AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#AF38AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38AD
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38AD#FFFFFF#000000##FFFFFF
##AF38AD1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2862B0
Deuteranopia (green-blind)
#5771AA
Tritanopia (blue-blind)
#B5486E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af38ad;
/* rgb */ color: rgb(175, 56, 173);
/* oklch */ color: oklch(55.7% 0.203 328.6);
Tailwind
colors: {
  custom: {
    50: '#ca79c6',
    500: '#af38ad',
    950: '#000000',
  },
}
SCSS
$custom: #af38ad;
$custom-light: #ca79c6;
$custom-dark: #000000;
JSON
{
  "hex": "#af38ad",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 301.008,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55737,
    "c": 0.20281,
    "h": 328.6
  },
  "luminance": 0.14959
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF38AD

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

Preview Lab → · Contrast checker → · Palette generator →

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