#AF2B9A#AF2B9A

#AF2B9A is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.6% C 0.203 H 335.4°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AF2B9A
RGBrgb(175, 43, 154)
HSLhsl(310, 61%, 43%)
HSVhsv(310, 75%, 69%)
CMYKcmyk(0%, 75.4%, 12%, 31.4%)
CIE-LABlab(43.03, 63.24, -30.96)
CIE-LCHlch(43.03, 70.41, 333.92°)
OKLaboklab(53.58% 0.185 -0.0845)
OKLCHoklch(53.58% 0.203 335.4)
XYZxyz(24.3761, 13.1770, 31.8252)
Luminance0.1318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B9A #2BAF40
analogous
#822BAF #AF2B9A #AF2B58
triadic
#AF2B9A #9AAF2B #2B9AAF
tetradic
#AF2B9A #AF822B #2BAF40 #2B58AF
square
#AF2B9A #AF822B #2BAF40 #2B58AF
split-complementary
#AF2B9A #58AF2B #2BAF82
monochromatic
#4D1344 #7E1F6F #AF2B9A #D146BB #DE77CD

Accessibility & contrast

On white

5.78
#AF2B9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AF2B9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2B9A
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B9A#FFFFFF#000000##FFFFFF
##AF2B9A1.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B599D
Deuteranopia (green-blind)
#5B6D97
Tritanopia (blue-blind)
#B83660
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2b9a;
/* rgb */ color: rgb(175, 43, 154);
/* oklch */ color: oklch(53.6% 0.203 335.4);
Tailwind
colors: {
  custom: {
    50: '#cb72b8',
    500: '#af2b9a',
    950: '#000000',
  },
}
SCSS
$custom: #af2b9a;
$custom-light: #cb72b8;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b9a",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 154
  },
  "hsl": {
    "h": 309.545,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53582,
    "c": 0.20336,
    "h": 335.4
  },
  "luminance": 0.13175
}

Semantic roles & 50–950 ramp

primary
#AF2B9A
secondary
#70C57E
accent
#E45E44
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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