#AF38B8#AF38B8

#AF38B8 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.4% C 0.212 H 324.9°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AF38B8
RGBrgb(175, 56, 184)
HSLhsl(296, 53%, 47%)
HSVhsv(296, 70%, 72%)
CMYKcmyk(4.9%, 69.6%, 0%, 27.8%)
CIE-LABlab(46.18, 63.64, -43.78)
CIE-LCHlch(46.18, 77.25, 325.48°)
OKLaboklab(56.36% 0.1732 -0.1217)
OKLCHoklch(56.36% 0.212 324.9)
XYZxyz(27.7444, 15.4047, 46.8502)
Luminance0.1540 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38B8 #41B838
analogous
#6F38B8 #AF38B8 #B83881
triadic
#AF38B8 #B8AF38 #38B8AF
tetradic
#AF38B8 #B86F38 #41B838 #3881B8
square
#AF38B8 #B86F38 #41B838 #3881B8
split-complementary
#AF38B8 #81B838 #38B86F
monochromatic
#561B5A #822A89 #AF38B8 #C65FCE #D78EDD

Accessibility & contrast

On white

5.15
#AF38B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#AF38B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38B8
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38B8#FFFFFF#000000##FFFFFF
##AF38B81.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1764BC
Deuteranopia (green-blind)
#5172B5
Tritanopia (blue-blind)
#B34D74
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af38b8;
/* rgb */ color: rgb(175, 56, 184);
/* oklch */ color: oklch(56.4% 0.212 324.9);
Tailwind
colors: {
  custom: {
    50: '#ca79ce',
    500: '#af38b8',
    950: '#000000',
  },
}
SCSS
$custom: #af38b8;
$custom-light: #ca79ce;
$custom-dark: #000000;
JSON
{
  "hex": "#af38b8",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 295.781,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56365,
    "c": 0.21173,
    "h": 324.9
  },
  "luminance": 0.15403
}

Semantic roles & 50–950 ramp

primary
#AF38B8
secondary
#89C785
accent
#DD4B55
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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