#AF289E#AF289E

#AF289E is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.6% C 0.209 H 333.9°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#AF289E
RGBrgb(175, 40, 158)
HSLhsl(308, 63%, 42%)
HSVhsv(308, 77%, 69%)
CMYKcmyk(0%, 77.1%, 9.7%, 31.4%)
CIE-LABlab(42.92, 64.73, -33.54)
CIE-LCHlch(42.92, 72.90, 332.61°)
OKLaboklab(53.57% 0.1879 -0.0919)
OKLCHoklch(53.57% 0.209 333.9)
XYZxyz(24.6098, 13.1023, 33.5740)
Luminance0.1310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF289E #28AF39
analogous
#7D28AF #AF289E #AF285A
triadic
#AF289E #9EAF28 #289EAF
tetradic
#AF289E #AF7D28 #28AF39 #285AAF
square
#AF289E #AF7D28 #28AF39 #285AAF
split-complementary
#AF289E #5AAF28 #28AF7D
monochromatic
#4B1144 #7D1D71 #AF289E #D441C1 #DF73D1

Accessibility & contrast

On white

5.80
#AF289E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AF289E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF289E
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF289E#FFFFFF#000000##FFFFFF
##AF289E1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2459A1
Deuteranopia (green-blind)
#586C9B
Tritanopia (blue-blind)
#B73661
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af289e;
/* rgb */ color: rgb(175, 40, 158);
/* oklch */ color: oklch(53.6% 0.209 333.9);
Tailwind
colors: {
  custom: {
    50: '#cb71bb',
    500: '#af289e',
    950: '#000000',
  },
}
SCSS
$custom: #af289e;
$custom-light: #cb71bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af289e",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 158
  },
  "hsl": {
    "h": 307.556,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53568,
    "c": 0.20916,
    "h": 333.9
  },
  "luminance": 0.131
}

Semantic roles & 50–950 ramp

primary
#AF289E
secondary
#6DC678
accent
#E65742
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF289E

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

Preview Lab → · Contrast checker → · Palette generator →

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