#AF2CB6#AF2CB6

#AF2CB6 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.2% C 0.223 H 325.8°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#AF2CB6
RGBrgb(175, 44, 182)
HSLhsl(297, 61%, 44%)
HSVhsv(297, 76%, 71%)
CMYKcmyk(3.8%, 75.8%, 0%, 28.6%)
CIE-LABlab(44.65, 67.34, -45.04)
CIE-LCHlch(44.65, 81.02, 326.22°)
OKLaboklab(55.23% 0.1845 -0.1253)
OKLCHoklch(55.23% 0.223 325.8)
XYZxyz(27.0228, 14.2946, 45.5827)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2CB6 #33B62C
analogous
#6A2CB6 #AF2CB6 #B62C78
triadic
#AF2CB6 #B6AF2C #2CB6AF
tetradic
#AF2CB6 #B66A2C #33B62C #2C78B6
square
#AF2CB6 #B66A2C #33B62C #2C78B6
split-complementary
#AF2CB6 #78B62C #2CB66A
monochromatic
#501453 #802085 #AF2CB6 #CD4CD4 #DB7DE0

Accessibility & contrast

On white

5.44
#AF2CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#AF2CB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2CB6
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2CB6#FFFFFF#000000##FFFFFF
##AF2CB61.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBA
Deuteranopia (green-blind)
#4C6FB3
Tritanopia (blue-blind)
#B34570
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2cb6;
/* rgb */ color: rgb(175, 44, 182);
/* oklch */ color: oklch(55.2% 0.223 325.8);
Tailwind
colors: {
  custom: {
    50: '#cb74cc',
    500: '#af2cb6',
    950: '#000000',
  },
}
SCSS
$custom: #af2cb6;
$custom-light: #cb74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#af2cb6",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 296.957,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55234,
    "c": 0.22304,
    "h": 325.8
  },
  "luminance": 0.14293
}

Semantic roles & 50–950 ramp

primary
#AF2CB6
secondary
#7AC876
accent
#E4444C
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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