#AF38BD#AF38BD

#AF38BD is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.7% C 0.216 H 323.3°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AF38BD
RGBrgb(175, 56, 189)
HSLhsl(294, 54%, 48%)
HSVhsv(294, 70%, 74%)
CMYKcmyk(7.4%, 70.4%, 0%, 25.9%)
CIE-LABlab(46.47, 64.52, -46.24)
CIE-LCHlch(46.47, 79.38, 324.37°)
OKLaboklab(56.66% 0.1731 -0.1289)
OKLCHoklch(56.66% 0.216 323.3)
XYZxyz(28.2778, 15.6181, 49.6594)
Luminance0.1562 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38BD #46BD38
analogous
#6C38BD #AF38BD #BD3888
triadic
#AF38BD #BDAF38 #38BDAF
tetradic
#AF38BD #BD6C38 #46BD38 #3888BD
square
#AF38BD #BD6C38 #46BD38 #3888BD
split-complementary
#AF38BD #88BD38 #38BD6C
monochromatic
#581C5F #832A8E #AF38BD #C562D0 #D691DE

Accessibility & contrast

On white

5.09
#AF38BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#AF38BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38BD
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38BD#FFFFFF#000000##FFFFFF
##AF38BD1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0965C1
Deuteranopia (green-blind)
#4E73BA
Tritanopia (blue-blind)
#B24F77
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af38bd;
/* rgb */ color: rgb(175, 56, 189);
/* oklch */ color: oklch(56.7% 0.216 323.3);
Tailwind
colors: {
  custom: {
    50: '#cb79d1',
    500: '#af38bd',
    950: '#000000',
  },
}
SCSS
$custom: #af38bd;
$custom-light: #cb79d1;
$custom-dark: #000000;
JSON
{
  "hex": "#af38bd",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 293.684,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56662,
    "c": 0.21586,
    "h": 323.3
  },
  "luminance": 0.15616
}

Semantic roles & 50–950 ramp

primary
#AF38BD
secondary
#8EC987
accent
#DE4A5A
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AF38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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