#AF2CB7#AF2CB7

#AF2CB7 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.3% C 0.224 H 325.5°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#AF2CB7
RGBrgb(175, 44, 183)
HSLhsl(297, 61%, 45%)
HSVhsv(297, 76%, 72%)
CMYKcmyk(4.4%, 76%, 0%, 28.2%)
CIE-LABlab(44.71, 67.51, -45.54)
CIE-LCHlch(44.71, 81.43, 326.00°)
OKLaboklab(55.29% 0.1845 -0.1268)
OKLCHoklch(55.29% 0.224 325.5)
XYZxyz(27.1265, 14.3360, 46.1289)
Luminance0.1433 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2CB7 #34B72C
analogous
#6A2CB7 #AF2CB7 #B72C79
triadic
#AF2CB7 #B7AF2C #2CB7AF
tetradic
#AF2CB7 #B76A2C #34B72C #2C79B7
square
#AF2CB7 #B76A2C #34B72C #2C79B7
split-complementary
#AF2CB7 #79B72C #2CB76A
monochromatic
#511454 #802086 #AF2CB7 #CC4CD4 #DA7EE0

Accessibility & contrast

On white

5.43
#AF2CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#AF2CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2CB7
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2CB7#FFFFFF#000000##FFFFFF
##AF2CB71.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#4B6FB4
Tritanopia (blue-blind)
#B34570
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2cb7;
/* rgb */ color: rgb(175, 44, 183);
/* oklch */ color: oklch(55.3% 0.224 325.5);
Tailwind
colors: {
  custom: {
    50: '#cb74cd',
    500: '#af2cb7',
    950: '#000000',
  },
}
SCSS
$custom: #af2cb7;
$custom-light: #cb74cd;
$custom-dark: #000000;
JSON
{
  "hex": "#af2cb7",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 296.547,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55294,
    "c": 0.22382,
    "h": 325.5
  },
  "luminance": 0.14334
}

Semantic roles & 50–950 ramp

primary
#AF2CB7
secondary
#7BC876
accent
#E4434D
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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