#AF279B#AF279B

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

Color values

HEX#AF279B
RGBrgb(175, 39, 155)
HSLhsl(309, 64%, 42%)
HSVhsv(309, 78%, 69%)
CMYKcmyk(0%, 77.7%, 11.4%, 31.4%)
CIE-LABlab(42.66, 64.57, -32.13)
CIE-LCHlch(42.66, 72.13, 333.55°)
OKLaboklab(53.34% 0.1886 -0.0879)
OKLCHoklch(53.34% 0.208 335)
XYZxyz(24.3214, 12.9338, 32.2195)
Luminance0.1293 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF279B #27AF3B
analogous
#7F27AF #AF279B #AF2757
triadic
#AF279B #9BAF27 #279BAF
tetradic
#AF279B #AF7F27 #27AF3B #2757AF
square
#AF279B #AF7F27 #27AF3B #2757AF
split-complementary
#AF279B #57AF27 #27AF7F
monochromatic
#4B1142 #7D1C6F #AF279B #D43FBE #DF71CF

Accessibility & contrast

On white

5.86
#AF279B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AF279B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF279B
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF279B#FFFFFF#000000##FFFFFF
##AF279B1.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26589E
Deuteranopia (green-blind)
#596C98
Tritanopia (blue-blind)
#B8335F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af279b;
/* rgb */ color: rgb(175, 39, 155);
/* oklch */ color: oklch(53.3% 0.208 335.0);
Tailwind
colors: {
  custom: {
    50: '#cb71b9',
    500: '#af279b',
    950: '#000000',
  },
}
SCSS
$custom: #af279b;
$custom-light: #cb71b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af279b",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 308.824,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53336,
    "c": 0.20803,
    "h": 335
  },
  "luminance": 0.12932
}

Semantic roles & 50–950 ramp

primary
#AF279B
secondary
#6BC679
accent
#E75A41
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF279B

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

Preview Lab → · Contrast checker → · Palette generator →

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