#AF279A#AF279A

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

Color values

HEX#AF279A
RGBrgb(175, 39, 154)
HSLhsl(309, 64%, 42%)
HSVhsv(309, 78%, 69%)
CMYKcmyk(0%, 77.7%, 12%, 31.4%)
CIE-LABlab(42.61, 64.43, -31.61)
CIE-LCHlch(42.61, 71.77, 333.87°)
OKLaboklab(53.28% 0.1885 -0.0864)
OKLCHoklch(53.28% 0.207 335.4)
XYZxyz(24.2378, 12.9003, 31.7791)
Luminance0.1290 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF279A #27AF3C
analogous
#8027AF #AF279A #AF2756
triadic
#AF279A #9AAF27 #279AAF
tetradic
#AF279A #AF8027 #27AF3C #2756AF
square
#AF279A #AF8027 #27AF3C #2756AF
split-complementary
#AF279A #56AF27 #27AF80
monochromatic
#4B1142 #7D1C6E #AF279A #D43FBD #DF71CE

Accessibility & contrast

On white

5.87
#AF279A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AF279A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF279A
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF279A#FFFFFF#000000##FFFFFF
##AF279A1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27589D
Deuteranopia (green-blind)
#5A6C97
Tritanopia (blue-blind)
#B8335F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af279a;
/* rgb */ color: rgb(175, 39, 154);
/* oklch */ color: oklch(53.3% 0.207 335.4);
Tailwind
colors: {
  custom: {
    50: '#cb71b8',
    500: '#af279a',
    950: '#000000',
  },
}
SCSS
$custom: #af279a;
$custom-light: #cb71b8;
$custom-dark: #000000;
JSON
{
  "hex": "#af279a",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 309.265,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53283,
    "c": 0.20734,
    "h": 335.4
  },
  "luminance": 0.12898
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF279A

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

Preview Lab → · Contrast checker → · Palette generator →

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