#AF289C#AF289C

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

Color values

HEX#AF289C
RGBrgb(175, 40, 156)
HSLhsl(308, 63%, 42%)
HSVhsv(308, 77%, 69%)
CMYKcmyk(0%, 77.1%, 10.9%, 31.4%)
CIE-LABlab(42.81, 64.43, -32.50)
CIE-LCHlch(42.81, 72.16, 333.24°)
OKLaboklab(53.46% 0.1878 -0.089)
OKLCHoklch(53.46% 0.208 334.6)
XYZxyz(24.4390, 13.0340, 32.6747)
Luminance0.1303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF289C #28AF3B
analogous
#7E28AF #AF289C #AF2859
triadic
#AF289C #9CAF28 #289CAF
tetradic
#AF289C #AF7E28 #28AF3B #2859AF
square
#AF289C #AF7E28 #28AF3B #2859AF
split-complementary
#AF289C #59AF28 #28AF7E
monochromatic
#4B1143 #7D1D70 #AF289C #D441BF #DF73D0

Accessibility & contrast

On white

5.82
#AF289C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF289C
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF289C#FFFFFF#000000##FFFFFF
##AF289C1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26599F
Deuteranopia (green-blind)
#596C99
Tritanopia (blue-blind)
#B83560
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af289c;
/* rgb */ color: rgb(175, 40, 156);
/* oklch */ color: oklch(53.5% 0.208 334.6);
Tailwind
colors: {
  custom: {
    50: '#cb71b9',
    500: '#af289c',
    950: '#000000',
  },
}
SCSS
$custom: #af289c;
$custom-light: #cb71b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af289c",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 156
  },
  "hsl": {
    "h": 308.444,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53461,
    "c": 0.20777,
    "h": 334.6
  },
  "luminance": 0.13032
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF289C

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

Preview Lab → · Contrast checker → · Palette generator →

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