#AF289D#AF289D

#AF289D is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.5% C 0.208 H 334.3°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#AF289D
RGBrgb(175, 40, 157)
HSLhsl(308, 63%, 42%)
HSVhsv(308, 77%, 69%)
CMYKcmyk(0%, 77.1%, 10.3%, 31.4%)
CIE-LABlab(42.87, 64.58, -33.02)
CIE-LCHlch(42.87, 72.53, 332.92°)
OKLaboklab(53.51% 0.1878 -0.0905)
OKLCHoklch(53.51% 0.208 334.3)
XYZxyz(24.5241, 13.0680, 33.1225)
Luminance0.1307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF289D #28AF3A
analogous
#7E28AF #AF289D #AF285A
triadic
#AF289D #9DAF28 #289DAF
tetradic
#AF289D #AF7E28 #28AF3A #285AAF
square
#AF289D #AF7E28 #28AF3A #285AAF
split-complementary
#AF289D #5AAF28 #28AF7E
monochromatic
#4B1144 #7D1D70 #AF289D #D441C0 #DF73D0

Accessibility & contrast

On white

5.81
#AF289D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AF289D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF289D
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF289D#FFFFFF#000000##FFFFFF
##AF289D1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2559A0
Deuteranopia (green-blind)
#596C9A
Tritanopia (blue-blind)
#B73561
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af289d;
/* rgb */ color: rgb(175, 40, 157);
/* oklch */ color: oklch(53.5% 0.208 334.3);
Tailwind
colors: {
  custom: {
    50: '#cb71ba',
    500: '#af289d',
    950: '#000000',
  },
}
SCSS
$custom: #af289d;
$custom-light: #cb71ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af289d",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 157
  },
  "hsl": {
    "h": 308,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53514,
    "c": 0.20847,
    "h": 334.3
  },
  "luminance": 0.13066
}

Semantic roles & 50–950 ramp

primary
#AF289D
secondary
#6DC679
accent
#E65842
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF289D

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

Preview Lab → · Contrast checker → · Palette generator →

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