#AF38BF#AF38BF

#AF38BF is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.8% C 0.218 H 322.7°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AF38BF
RGBrgb(175, 56, 191)
HSLhsl(293, 55%, 48%)
HSVhsv(293, 71%, 75%)
CMYKcmyk(8.4%, 70.7%, 0%, 25.1%)
CIE-LABlab(46.59, 64.88, -47.22)
CIE-LCHlch(46.59, 80.25, 323.95°)
OKLaboklab(56.78% 0.1731 -0.1318)
OKLCHoklch(56.78% 0.218 322.7)
XYZxyz(28.4964, 15.7055, 50.8106)
Luminance0.1570 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38BF #48BF38
analogous
#6B38BF #AF38BF #BF388B
triadic
#AF38BF #BFAF38 #38BFAF
tetradic
#AF38BF #BF6B38 #48BF38 #388BBF
square
#AF38BF #BF6B38 #48BF38 #388BBF
split-complementary
#AF38BF #8BBF38 #38BF6B
monochromatic
#581C60 #842A90 #AF38BF #C463D1 #D692DF

Accessibility & contrast

On white

5.07
#AF38BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#AF38BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38BF
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38BF#FFFFFF#000000##FFFFFF
##AF38BF1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0166C3
Deuteranopia (green-blind)
#4C73BC
Tritanopia (blue-blind)
#B15078
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af38bf;
/* rgb */ color: rgb(175, 56, 191);
/* oklch */ color: oklch(56.8% 0.218 322.7);
Tailwind
colors: {
  custom: {
    50: '#cb79d3',
    500: '#af38bf',
    950: '#000000',
  },
}
SCSS
$custom: #af38bf;
$custom-light: #cb79d3;
$custom-dark: #000000;
JSON
{
  "hex": "#af38bf",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 292.889,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.56782,
    "c": 0.21753,
    "h": 322.7
  },
  "luminance": 0.15704
}

Semantic roles & 50–950 ramp

primary
#AF38BF
secondary
#90CA89
accent
#DE4A5B
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF38BF

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

Preview Lab → · Contrast checker → · Palette generator →

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