#AF38B6#AF38B6

#AF38B6 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.2% C 0.210 H 325.5°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#AF38B6
RGBrgb(175, 56, 182)
HSLhsl(297, 53%, 47%)
HSVhsv(297, 69%, 71%)
CMYKcmyk(3.8%, 69.2%, 0%, 28.6%)
CIE-LABlab(46.07, 63.30, -42.78)
CIE-LCHlch(46.07, 76.40, 325.94°)
OKLaboklab(56.25% 0.1732 -0.1188)
OKLCHoklch(56.25% 0.21 325.5)
XYZxyz(27.5363, 15.3215, 45.7539)
Luminance0.1532 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38B6 #3FB638
analogous
#7038B6 #AF38B6 #B6387E
triadic
#AF38B6 #B6AF38 #38B6AF
tetradic
#AF38B6 #B67038 #3FB638 #387EB6
square
#AF38B6 #B67038 #3FB638 #387EB6
split-complementary
#AF38B6 #7EB638 #38B670
monochromatic
#551B58 #822A87 #AF38B6 #C75ECD #D78DDC

Accessibility & contrast

On white

5.17
#AF38B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#AF38B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38B6
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38B6#FFFFFF#000000##FFFFFF
##AF38B61.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B64BA
Deuteranopia (green-blind)
#5272B3
Tritanopia (blue-blind)
#B34C73
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af38b6;
/* rgb */ color: rgb(175, 56, 182);
/* oklch */ color: oklch(56.2% 0.210 325.5);
Tailwind
colors: {
  custom: {
    50: '#ca79cc',
    500: '#af38b6',
    950: '#000000',
  },
}
SCSS
$custom: #af38b6;
$custom-light: #ca79cc;
$custom-dark: #000000;
JSON
{
  "hex": "#af38b6",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 296.667,
    "s": 52.941,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56248,
    "c": 0.21009,
    "h": 325.5
  },
  "luminance": 0.1532
}

Semantic roles & 50–950 ramp

primary
#AF38B6
secondary
#87C684
accent
#DC4B53
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF38B6

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

Preview Lab → · Contrast checker → · Palette generator →

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