#AF2CB4#AF2CB4

#AF2CB4 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.1% C 0.222 H 326.4°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#AF2CB4
RGBrgb(175, 44, 180)
HSLhsl(298, 61%, 44%)
HSVhsv(298, 76%, 71%)
CMYKcmyk(2.8%, 75.6%, 0%, 29.4%)
CIE-LABlab(44.54, 67.01, -44.05)
CIE-LCHlch(44.54, 80.19, 326.68°)
OKLaboklab(55.11% 0.1846 -0.1224)
OKLCHoklch(55.11% 0.222 326.4)
XYZxyz(26.8176, 14.2125, 44.5020)
Luminance0.1421 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2CB4 #31B42C
analogous
#6B2CB4 #AF2CB4 #B42C75
triadic
#AF2CB4 #B4AF2C #2CB4AF
tetradic
#AF2CB4 #B46B2C #31B42C #2C75B4
square
#AF2CB4 #B46B2C #31B42C #2C75B4
split-complementary
#AF2CB4 #75B42C #2CB46B
monochromatic
#4F1452 #7F2083 #AF2CB4 #CE4AD3 #DB7CDF

Accessibility & contrast

On white

5.47
#AF2CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#AF2CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2CB4
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2CB4#FFFFFF#000000##FFFFFF
##AF2CB41.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#4D6FB1
Tritanopia (blue-blind)
#B4446F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2cb4;
/* rgb */ color: rgb(175, 44, 180);
/* oklch */ color: oklch(55.1% 0.222 326.4);
Tailwind
colors: {
  custom: {
    50: '#cb74cb',
    500: '#af2cb4',
    950: '#000000',
  },
}
SCSS
$custom: #af2cb4;
$custom-light: #cb74cb;
$custom-dark: #000000;
JSON
{
  "hex": "#af2cb4",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 180
  },
  "hsl": {
    "h": 297.794,
    "s": 60.714,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55114,
    "c": 0.2215,
    "h": 326.4
  },
  "luminance": 0.14211
}

Semantic roles & 50–950 ramp

primary
#AF2CB4
secondary
#78C775
accent
#E4444A
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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