#AF2BB2#AF2BB2

#AF2BB2 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.9% C 0.221 H 327.1°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#AF2BB2
RGBrgb(175, 43, 178)
HSLhsl(299, 61%, 43%)
HSVhsv(299, 76%, 70%)
CMYKcmyk(1.7%, 75.8%, 0%, 30.2%)
CIE-LABlab(44.32, 66.98, -43.22)
CIE-LCHlch(44.32, 79.72, 327.17°)
OKLaboklab(54.92% 0.1855 -0.12)
OKLCHoklch(54.92% 0.221 327.1)
XYZxyz(26.5785, 14.0580, 43.4244)
Luminance0.1406 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2BB2 #2EB22B
analogous
#6B2BB2 #AF2BB2 #B22B71
triadic
#AF2BB2 #B2AF2B #2BB2AF
tetradic
#AF2BB2 #B26B2B #2EB22B #2B71B2
square
#AF2BB2 #B26B2B #2EB22B #2B71B2
split-complementary
#AF2BB2 #71B22B #2BB26B
monochromatic
#4E134F #7F1F81 #AF2BB2 #D048D3 #DC79DF

Accessibility & contrast

On white

5.51
#AF2BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#AF2BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2BB2
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2BB2#FFFFFF#000000##FFFFFF
##AF2BB21.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#4E6EAF
Tritanopia (blue-blind)
#B4426D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2bb2;
/* rgb */ color: rgb(175, 43, 178);
/* oklch */ color: oklch(54.9% 0.221 327.1);
Tailwind
colors: {
  custom: {
    50: '#cb73c9',
    500: '#af2bb2',
    950: '#000000',
  },
}
SCSS
$custom: #af2bb2;
$custom-light: #cb73c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2bb2",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 298.667,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.5492,
    "c": 0.22094,
    "h": 327.1
  },
  "luminance": 0.14056
}

Semantic roles & 50–950 ramp

primary
#AF2BB2
secondary
#74C772
accent
#E44447
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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