#AF38B9#AF38B9

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

Color values

HEX#AF38B9
RGBrgb(175, 56, 185)
HSLhsl(295, 54%, 47%)
HSVhsv(295, 70%, 73%)
CMYKcmyk(5.4%, 69.7%, 0%, 27.5%)
CIE-LABlab(46.24, 63.82, -44.27)
CIE-LCHlch(46.24, 77.67, 325.25°)
OKLaboklab(56.42% 0.1732 -0.1232)
OKLCHoklch(56.42% 0.213 324.6)
XYZxyz(27.8496, 15.4468, 47.4042)
Luminance0.1545 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38B9 #42B938
analogous
#6F38B9 #AF38B9 #B93882
triadic
#AF38B9 #B9AF38 #38B9AF
tetradic
#AF38B9 #B96F38 #42B938 #3882B9
square
#AF38B9 #B96F38 #42B938 #3882B9
split-complementary
#AF38B9 #82B938 #38B96F
monochromatic
#561C5B #832A8A #AF38B9 #C65FCF #D78EDD

Accessibility & contrast

On white

5.14
#AF38B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#AF38B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38B9
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38B9#FFFFFF#000000##FFFFFF
##AF38B91.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1564BD
Deuteranopia (green-blind)
#5072B6
Tritanopia (blue-blind)
#B34D75
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af38b9;
/* rgb */ color: rgb(175, 56, 185);
/* oklch */ color: oklch(56.4% 0.213 324.6);
Tailwind
colors: {
  custom: {
    50: '#ca79ce',
    500: '#af38b9',
    950: '#000000',
  },
}
SCSS
$custom: #af38b9;
$custom-light: #ca79ce;
$custom-dark: #000000;
JSON
{
  "hex": "#af38b9",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 295.349,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56424,
    "c": 0.21255,
    "h": 324.6
  },
  "luminance": 0.15445
}

Semantic roles & 50–950 ramp

primary
#AF38B9
secondary
#8AC885
accent
#DD4B56
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AF38B9

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

Preview Lab → · Contrast checker → · Palette generator →

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