#AF38AB#AF38AB

#AF38AB is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.6% C 0.201 H 329.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#AF38AB
RGBrgb(175, 56, 171)
HSLhsl(302, 52%, 45%)
HSVhsv(302, 68%, 69%)
CMYKcmyk(0%, 68%, 2.3%, 31.4%)
CIE-LABlab(45.48, 61.43, -37.25)
CIE-LCHlch(45.48, 71.84, 328.77°)
OKLaboklab(55.63% 0.173 -0.1028)
OKLCHoklch(55.63% 0.201 329.3)
XYZxyz(26.4438, 14.8845, 40.0004)
Luminance0.1488 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38AB #38AF3C
analogous
#7838AF #AF38AB #AF386F
triadic
#AF38AB #ABAF38 #38ABAF
tetradic
#AF38AB #AF7838 #38AF3C #386FAF
square
#AF38AB #AF7838 #38AF3C #386FAF
split-complementary
#AF38AB #6FAF38 #38AF78
monochromatic
#521A50 #81297E #AF38AB #CA5AC6 #D988D6

Accessibility & contrast

On white

5.28
#AF38AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF38AB
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38AB#FFFFFF#000000##FFFFFF
##AF38AB1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A61AE
Deuteranopia (green-blind)
#5871A8
Tritanopia (blue-blind)
#B5476D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af38ab;
/* rgb */ color: rgb(175, 56, 171);
/* oklch */ color: oklch(55.6% 0.201 329.3);
Tailwind
colors: {
  custom: {
    50: '#ca79c4',
    500: '#af38ab',
    950: '#000000',
  },
}
SCSS
$custom: #af38ab;
$custom-light: #ca79c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af38ab",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 302.017,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55627,
    "c": 0.20122,
    "h": 329.3
  },
  "luminance": 0.14883
}

Semantic roles & 50–950 ramp

primary
#AF38AB
secondary
#80C382
accent
#DB524D
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF38AB

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

Preview Lab → · Contrast checker → · Palette generator →

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