#AF2799#AF2799

#AF2799 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.2% C 0.207 H 335.7°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#AF2799
RGBrgb(175, 39, 153)
HSLhsl(310, 64%, 42%)
HSVhsv(310, 78%, 69%)
CMYKcmyk(0%, 77.7%, 12.6%, 31.4%)
CIE-LABlab(42.56, 64.28, -31.09)
CIE-LCHlch(42.56, 71.41, 334.19°)
OKLaboklab(53.23% 0.1884 -0.0849)
OKLCHoklch(53.23% 0.207 335.7)
XYZxyz(24.1549, 12.8671, 31.3423)
Luminance0.1286 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2799 #27AF3D
analogous
#8127AF #AF2799 #AF2755
triadic
#AF2799 #99AF27 #2799AF
tetradic
#AF2799 #AF8127 #27AF3D #2755AF
square
#AF2799 #AF8127 #27AF3D #2755AF
split-complementary
#AF2799 #55AF27 #27AF81
monochromatic
#4B1141 #7D1C6D #AF2799 #D43FBC #DF71CE

Accessibility & contrast

On white

5.88
#AF2799 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AF2799 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2799
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2799#FFFFFF#000000##FFFFFF
##AF27991.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28589C
Deuteranopia (green-blind)
#5A6C96
Tritanopia (blue-blind)
#B8325E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2799;
/* rgb */ color: rgb(175, 39, 153);
/* oklch */ color: oklch(53.2% 0.207 335.7);
Tailwind
colors: {
  custom: {
    50: '#cb71b7',
    500: '#af2799',
    950: '#000000',
  },
}
SCSS
$custom: #af2799;
$custom-light: #cb71b7;
$custom-dark: #000000;
JSON
{
  "hex": "#af2799",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 309.706,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53231,
    "c": 0.20666,
    "h": 335.7
  },
  "luminance": 0.12865
}

Semantic roles & 50–950 ramp

primary
#AF2799
secondary
#6BC67A
accent
#E75C41
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #AF2799

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

Preview Lab → · Contrast checker → · Palette generator →

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