#AF40BB#AF40BB

#AF40BB is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.3% C 0.204 H 323.7°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#AF40BB
RGBrgb(175, 64, 187)
HSLhsl(294, 49%, 49%)
HSVhsv(294, 66%, 73%)
CMYKcmyk(6.4%, 65.8%, 0%, 26.7%)
CIE-LABlab(47.46, 61.07, -43.51)
CIE-LCHlch(47.46, 74.98, 324.53°)
OKLaboklab(57.33% 0.1647 -0.121)
OKLCHoklch(57.33% 0.204 323.7)
XYZxyz(28.4814, 16.3702, 48.6637)
Luminance0.1637 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40BB #4CBB40
analogous
#7240BB #AF40BB #BB408A
triadic
#AF40BB #BBAF40 #40BBAF
tetradic
#AF40BB #BB7240 #4CBB40 #408ABB
square
#AF40BB #BB7240 #4CBB40 #408ABB
split-complementary
#AF40BB #8ABB40 #40BB72
monochromatic
#5A2160 #84308D #AF40BB #C36CCD #D699DC

Accessibility & contrast

On white

4.91
#AF40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#AF40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40BB
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40BB#FFFFFF#000000##FFFFFF
##AF40BB1.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2468BF
Deuteranopia (green-blind)
#5475B8
Tritanopia (blue-blind)
#B25378
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af40bb;
/* rgb */ color: rgb(175, 64, 187);
/* oklch */ color: oklch(57.3% 0.204 323.7);
Tailwind
colors: {
  custom: {
    50: '#ca7dd0',
    500: '#af40bb',
    950: '#000000',
  },
}
SCSS
$custom: #af40bb;
$custom-light: #ca7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#af40bb",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 294.146,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57334,
    "c": 0.20435,
    "h": 323.7
  },
  "luminance": 0.16369
}

Semantic roles & 50–950 ramp

primary
#AF40BB
secondary
#94C88F
accent
#D94F5D
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AF40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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