#AF2CAB#AF2CAB

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

Color values

HEX#AF2CAB
RGBrgb(175, 44, 171)
HSLhsl(302, 60%, 43%)
HSVhsv(302, 75%, 69%)
CMYKcmyk(0%, 74.9%, 2.3%, 31.4%)
CIE-LABlab(44.03, 65.54, -39.54)
CIE-LCHlch(44.03, 76.55, 328.90°)
OKLaboklab(54.59% 0.1847 -0.1093)
OKLCHoklch(54.59% 0.215 329.4)
XYZxyz(25.9304, 13.8576, 39.8292)
Luminance0.1386 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2CAB #2CAF30
analogous
#712CAF #AF2CAB #AF2C69
triadic
#AF2CAB #ABAF2C #2CABAF
tetradic
#AF2CAB #AF712C #2CAF30 #2C69AF
square
#AF2CAB #AF712C #2CAF30 #2C69AF
split-complementary
#AF2CAB #69AF2C #2CAF71
monochromatic
#4D134B #7E207B #AF2CAB #D147CD #DD78DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2CAB#FFFFFF#000000##FFFFFF
##AF2CAB1.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)
#175DAE
Deuteranopia (green-blind)
#536EA8
Tritanopia (blue-blind)
#B53F6A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2cab;
/* rgb */ color: rgb(175, 44, 171);
/* oklch */ color: oklch(54.6% 0.215 329.4);
Tailwind
colors: {
  custom: {
    50: '#cb74c4',
    500: '#af2cab',
    950: '#000000',
  },
}
SCSS
$custom: #af2cab;
$custom-light: #cb74c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af2cab",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 301.832,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54587,
    "c": 0.21467,
    "h": 329.4
  },
  "luminance": 0.13856
}

Semantic roles & 50–950 ramp

primary
#AF2CAB
secondary
#72C574
accent
#E34A45
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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