#AF2BA3#AF2BA3

#AF2BA3 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.1% C 0.210 H 332.1°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#AF2BA3
RGBrgb(175, 43, 163)
HSLhsl(305, 61%, 43%)
HSVhsv(305, 75%, 69%)
CMYKcmyk(0%, 75.4%, 6.9%, 31.4%)
CIE-LABlab(43.49, 64.59, -35.63)
CIE-LCHlch(43.49, 73.77, 331.12°)
OKLaboklab(54.06% 0.1855 -0.098)
OKLCHoklch(54.06% 0.21 332.1)
XYZxyz(25.1540, 13.4882, 35.9219)
Luminance0.1349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2BA3 #2BAF37
analogous
#792BAF #AF2BA3 #AF2B61
triadic
#AF2BA3 #A3AF2B #2BA3AF
tetradic
#AF2BA3 #AF792B #2BAF37 #2B61AF
square
#AF2BA3 #AF792B #2BAF37 #2B61AF
split-complementary
#AF2BA3 #61AF2B #2BAF79
monochromatic
#4D1347 #7E1F75 #AF2BA3 #D146C5 #DE77D4

Accessibility & contrast

On white

5.68
#AF2BA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AF2BA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2BA3
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2BA3#FFFFFF#000000##FFFFFF
##AF2BA31.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225BA6
Deuteranopia (green-blind)
#576DA0
Tritanopia (blue-blind)
#B73A65
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2ba3;
/* rgb */ color: rgb(175, 43, 163);
/* oklch */ color: oklch(54.1% 0.210 332.1);
Tailwind
colors: {
  custom: {
    50: '#cb73be',
    500: '#af2ba3',
    950: '#000000',
  },
}
SCSS
$custom: #af2ba3;
$custom-light: #cb73be;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ba3",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 305.455,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54063,
    "c": 0.20977,
    "h": 332.1
  },
  "luminance": 0.13486
}

Semantic roles & 50–950 ramp

primary
#AF2BA3
secondary
#70C578
accent
#E45344
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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