#AF2B9C#AF2B9C

#AF2B9C is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.7% C 0.205 H 334.7°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#AF2B9C
RGBrgb(175, 43, 156)
HSLhsl(309, 61%, 43%)
HSVhsv(309, 75%, 69%)
CMYKcmyk(0%, 75.4%, 10.9%, 31.4%)
CIE-LABlab(43.13, 63.53, -32.00)
CIE-LCHlch(43.13, 71.14, 333.27°)
OKLaboklab(53.69% 0.1851 -0.0876)
OKLCHoklch(53.69% 0.205 334.7)
XYZxyz(24.5441, 13.2442, 32.7098)
Luminance0.1324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B9C #2BAF3E
analogous
#802BAF #AF2B9C #AF2B5A
triadic
#AF2B9C #9CAF2B #2B9CAF
tetradic
#AF2B9C #AF802B #2BAF3E #2B5AAF
square
#AF2B9C #AF802B #2BAF3E #2B5AAF
split-complementary
#AF2B9C #5AAF2B #2BAF80
monochromatic
#4D1344 #7E1F70 #AF2B9C #D146BD #DE77CF

Accessibility & contrast

On white

5.76
#AF2B9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AF2B9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2B9C
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B9C#FFFFFF#000000##FFFFFF
##AF2B9C1.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29599F
Deuteranopia (green-blind)
#5A6D99
Tritanopia (blue-blind)
#B83761
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2b9c;
/* rgb */ color: rgb(175, 43, 156);
/* oklch */ color: oklch(53.7% 0.205 334.7);
Tailwind
colors: {
  custom: {
    50: '#cb73b9',
    500: '#af2b9c',
    950: '#000000',
  },
}
SCSS
$custom: #af2b9c;
$custom-light: #cb73b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b9c",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 156
  },
  "hsl": {
    "h": 308.636,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53687,
    "c": 0.20477,
    "h": 334.7
  },
  "luminance": 0.13242
}

Semantic roles & 50–950 ramp

primary
#AF2B9C
secondary
#70C57D
accent
#E45B44
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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