#AF289B#AF289B

#AF289B is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.4% C 0.207 H 335.0°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#AF289B
RGBrgb(175, 40, 155)
HSLhsl(309, 63%, 42%)
HSVhsv(309, 77%, 69%)
CMYKcmyk(0%, 77.1%, 11.4%, 31.4%)
CIE-LABlab(42.76, 64.29, -31.97)
CIE-LCHlch(42.76, 71.80, 333.56°)
OKLaboklab(53.41% 0.1877 -0.0875)
OKLCHoklch(53.41% 0.207 335)
XYZxyz(24.3547, 13.0003, 32.2306)
Luminance0.1300 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF289B #28AF3C
analogous
#8028AF #AF289B #AF2857
triadic
#AF289B #9BAF28 #289BAF
tetradic
#AF289B #AF8028 #28AF3C #2857AF
square
#AF289B #AF8028 #28AF3C #2857AF
split-complementary
#AF289B #57AF28 #28AF80
monochromatic
#4B1143 #7D1D6F #AF289B #D441BE #DF73CF

Accessibility & contrast

On white

5.83
#AF289B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AF289B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF289B
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF289B#FFFFFF#000000##FFFFFF
##AF289B1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27589E
Deuteranopia (green-blind)
#596C98
Tritanopia (blue-blind)
#B83460
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af289b;
/* rgb */ color: rgb(175, 40, 155);
/* oklch */ color: oklch(53.4% 0.207 335.0);
Tailwind
colors: {
  custom: {
    50: '#cb71b9',
    500: '#af289b',
    950: '#000000',
  },
}
SCSS
$custom: #af289b;
$custom-light: #cb71b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af289b",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 308.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53408,
    "c": 0.20708,
    "h": 335
  },
  "luminance": 0.12998
}

Semantic roles & 50–950 ramp

primary
#AF289B
secondary
#6DC67A
accent
#E65A42
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF289B

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

Preview Lab → · Contrast checker → · Palette generator →

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