#AF279F#AF279F

#AF279F is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.5% C 0.211 H 333.6°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#AF279F
RGBrgb(175, 39, 159)
HSLhsl(307, 64%, 42%)
HSVhsv(307, 78%, 69%)
CMYKcmyk(0%, 77.7%, 9.1%, 31.4%)
CIE-LABlab(42.87, 65.17, -34.21)
CIE-LCHlch(42.87, 73.60, 332.30°)
OKLaboklab(53.55% 0.1888 -0.0939)
OKLCHoklch(53.55% 0.211 333.6)
XYZxyz(24.6629, 13.0704, 34.0181)
Luminance0.1307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF279F #27AF37
analogous
#7B27AF #AF279F #AF275B
triadic
#AF279F #9FAF27 #279FAF
tetradic
#AF279F #AF7B27 #27AF37 #275BAF
square
#AF279F #AF7B27 #27AF37 #275BAF
split-complementary
#AF279F #5BAF27 #27AF7B
monochromatic
#4B1144 #7D1C72 #AF279F #D43FC3 #DF71D2

Accessibility & contrast

On white

5.81
#AF279F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AF279F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF279F
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF279F#FFFFFF#000000##FFFFFF
##AF279F1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2259A2
Deuteranopia (green-blind)
#576C9C
Tritanopia (blue-blind)
#B73662
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af279f;
/* rgb */ color: rgb(175, 39, 159);
/* oklch */ color: oklch(53.5% 0.211 333.6);
Tailwind
colors: {
  custom: {
    50: '#cb71bc',
    500: '#af279f',
    950: '#000000',
  },
}
SCSS
$custom: #af279f;
$custom-light: #cb71bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af279f",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 307.059,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.5355,
    "c": 0.21082,
    "h": 333.6
  },
  "luminance": 0.13068
}

Semantic roles & 50–950 ramp

primary
#AF279F
secondary
#6BC676
accent
#E75541
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF279F

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

Preview Lab → · Contrast checker → · Palette generator →

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