#AF2BAD#AF2BAD

#AF2BAD is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.6% C 0.217 H 328.7°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#AF2BAD
RGBrgb(175, 43, 173)
HSLhsl(301, 61%, 43%)
HSVhsv(301, 75%, 69%)
CMYKcmyk(0%, 75.4%, 1.1%, 31.4%)
CIE-LABlab(44.03, 66.17, -40.72)
CIE-LCHlch(44.03, 77.69, 328.39°)
OKLaboklab(54.63% 0.1856 -0.1127)
OKLCHoklch(54.63% 0.217 328.7)
XYZxyz(26.0856, 13.8608, 40.8286)
Luminance0.1386 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2BAD #2BAF2D
analogous
#6F2BAF #AF2BAD #AF2B6B
triadic
#AF2BAD #ADAF2B #2BADAF
tetradic
#AF2BAD #AF6F2B #2BAF2D #2B6BAF
square
#AF2BAD #AF6F2B #2BAF2D #2B6BAF
split-complementary
#AF2BAD #6BAF2B #2BAF6F
monochromatic
#4D134C #7E1F7C #AF2BAD #D146CF #DE77DC

Accessibility & contrast

On white

5.57
#AF2BAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#AF2BAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2BAD
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2BAD#FFFFFF#000000##FFFFFF
##AF2BAD1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105DB0
Deuteranopia (green-blind)
#516EAA
Tritanopia (blue-blind)
#B5406B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2bad;
/* rgb */ color: rgb(175, 43, 173);
/* oklch */ color: oklch(54.6% 0.217 328.7);
Tailwind
colors: {
  custom: {
    50: '#cb73c6',
    500: '#af2bad',
    950: '#000000',
  },
}
SCSS
$custom: #af2bad;
$custom-light: #cb73c6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2bad",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 173
  },
  "hsl": {
    "h": 300.909,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54627,
    "c": 0.21716,
    "h": 328.7
  },
  "luminance": 0.13859
}

Semantic roles & 50–950 ramp

primary
#AF2BAD
secondary
#70C572
accent
#E44744
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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