#AF42BB#AF42BB

#AF42BB is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.5% C 0.202 H 323.6°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AF42BB
RGBrgb(175, 66, 187)
HSLhsl(294, 48%, 50%)
HSVhsv(294, 65%, 73%)
CMYKcmyk(6.4%, 64.7%, 0%, 26.7%)
CIE-LABlab(47.75, 60.24, -43.04)
CIE-LCHlch(47.75, 74.04, 324.46°)
OKLaboklab(57.55% 0.1624 -0.1197)
OKLCHoklch(57.55% 0.202 323.6)
XYZxyz(28.5962, 16.5999, 48.7019)
Luminance0.1660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42BB #4EBB42
analogous
#7342BB #AF42BB #BB428A
triadic
#AF42BB #BBAF42 #42BBAF
tetradic
#AF42BB #BB7342 #4EBB42 #428ABB
square
#AF42BB #BB7342 #4EBB42 #428ABB
split-complementary
#AF42BB #8ABB42 #42BB73
monochromatic
#5A2261 #85328E #AF42BB #C36ECC #D69CDC

Accessibility & contrast

On white

4.86
#AF42BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AF42BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42BB
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42BB#FFFFFF#000000##FFFFFF
##AF42BB1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2869BF
Deuteranopia (green-blind)
#5576B8
Tritanopia (blue-blind)
#B25579
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af42bb;
/* rgb */ color: rgb(175, 66, 187);
/* oklch */ color: oklch(57.5% 0.202 323.6);
Tailwind
colors: {
  custom: {
    50: '#ca7ed0',
    500: '#af42bb',
    950: '#000000',
  },
}
SCSS
$custom: #af42bb;
$custom-light: #ca7ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#af42bb",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 294.05,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57548,
    "c": 0.20173,
    "h": 323.6
  },
  "luminance": 0.16598
}

Semantic roles & 50–950 ramp

primary
#AF42BB
secondary
#96C891
accent
#D7505E
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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