#AF38BB#AF38BB

#AF38BB is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.5% C 0.214 H 323.9°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#AF38BB
RGBrgb(175, 56, 187)
HSLhsl(295, 54%, 48%)
HSVhsv(295, 70%, 73%)
CMYKcmyk(6.4%, 70.1%, 0%, 26.7%)
CIE-LABlab(46.35, 64.17, -45.26)
CIE-LCHlch(46.35, 78.53, 324.80°)
OKLaboklab(56.54% 0.1732 -0.1261)
OKLCHoklch(56.54% 0.214 323.9)
XYZxyz(28.0622, 15.5319, 48.5239)
Luminance0.1553 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38BB #44BB38
analogous
#6E38BB #AF38BB #BB3885
triadic
#AF38BB #BBAF38 #38BBAF
tetradic
#AF38BB #BB6E38 #44BB38 #3885BB
square
#AF38BB #BB6E38 #44BB38 #3885BB
split-complementary
#AF38BB #85BB38 #38BB6E
monochromatic
#571C5D #832A8C #AF38BB #C561D0 #D790DE

Accessibility & contrast

On white

5.11
#AF38BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#AF38BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38BB
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38BB#FFFFFF#000000##FFFFFF
##AF38BB1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1065BF
Deuteranopia (green-blind)
#4F73B8
Tritanopia (blue-blind)
#B24E76
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af38bb;
/* rgb */ color: rgb(175, 56, 187);
/* oklch */ color: oklch(56.5% 0.214 323.9);
Tailwind
colors: {
  custom: {
    50: '#ca79d0',
    500: '#af38bb',
    950: '#000000',
  },
}
SCSS
$custom: #af38bb;
$custom-light: #ca79d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af38bb",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 294.504,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56542,
    "c": 0.2142,
    "h": 323.9
  },
  "luminance": 0.1553
}

Semantic roles & 50–950 ramp

primary
#AF38BB
secondary
#8CC886
accent
#DD4B58
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AF38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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