#AF299E#AF299E

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

Color values

HEX#AF299E
RGBrgb(175, 41, 158)
HSLhsl(308, 62%, 42%)
HSVhsv(308, 77%, 69%)
CMYKcmyk(0%, 76.6%, 9.7%, 31.4%)
CIE-LABlab(43.02, 64.44, -33.38)
CIE-LCHlch(43.02, 72.57, 332.62°)
OKLaboklab(53.64% 0.187 -0.0915)
OKLCHoklch(53.64% 0.208 333.9)
XYZxyz(24.6439, 13.1706, 33.5854)
Luminance0.1317 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF299E #29AF3A
analogous
#7D29AF #AF299E #AF295B
triadic
#AF299E #9EAF29 #299EAF
tetradic
#AF299E #AF7D29 #29AF3A #295BAF
square
#AF299E #AF7D29 #29AF3A #295BAF
split-complementary
#AF299E #5BAF29 #29AF7D
monochromatic
#4C1244 #7D1D71 #AF299E #D342C0 #DE74D1

Accessibility & contrast

On white

5.78
#AF299E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF299E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF299E
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF299E#FFFFFF#000000##FFFFFF
##AF299E1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2559A1
Deuteranopia (green-blind)
#586C9B
Tritanopia (blue-blind)
#B73662
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af299e;
/* rgb */ color: rgb(175, 41, 158);
/* oklch */ color: oklch(53.6% 0.208 333.9);
Tailwind
colors: {
  custom: {
    50: '#cb72bb',
    500: '#af299e',
    950: '#000000',
  },
}
SCSS
$custom: #af299e;
$custom-light: #cb72bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af299e",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 307.612,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53641,
    "c": 0.20819,
    "h": 333.9
  },
  "luminance": 0.13168
}

Semantic roles & 50–950 ramp

primary
#AF299E
secondary
#6EC679
accent
#E55743
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF299E

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

Preview Lab → · Contrast checker → · Palette generator →

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