#AF279E#AF279E

#AF279E is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.5% C 0.210 H 333.9°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#AF279E
RGBrgb(175, 39, 158)
HSLhsl(308, 64%, 42%)
HSVhsv(308, 78%, 69%)
CMYKcmyk(0%, 77.7%, 9.7%, 31.4%)
CIE-LABlab(42.82, 65.02, -33.69)
CIE-LCHlch(42.82, 73.23, 332.61°)
OKLaboklab(53.5% 0.1887 -0.0924)
OKLCHoklch(53.5% 0.21 333.9)
XYZxyz(24.5765, 13.0358, 33.5629)
Luminance0.1303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF279E #27AF38
analogous
#7C27AF #AF279E #AF275A
triadic
#AF279E #9EAF27 #279EAF
tetradic
#AF279E #AF7C27 #27AF38 #275AAF
square
#AF279E #AF7C27 #27AF38 #275AAF
split-complementary
#AF279E #5AAF27 #27AF7C
monochromatic
#4B1144 #7D1C71 #AF279E #D43FC2 #DF71D2

Accessibility & contrast

On white

5.82
#AF279E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF279E
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF279E#FFFFFF#000000##FFFFFF
##AF279E1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2359A1
Deuteranopia (green-blind)
#586C9B
Tritanopia (blue-blind)
#B73561
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af279e;
/* rgb */ color: rgb(175, 39, 158);
/* oklch */ color: oklch(53.5% 0.210 333.9);
Tailwind
colors: {
  custom: {
    50: '#cb71bb',
    500: '#af279e',
    950: '#000000',
  },
}
SCSS
$custom: #af279e;
$custom-light: #cb71bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af279e",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 307.5,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53496,
    "c": 0.21013,
    "h": 333.9
  },
  "luminance": 0.13034
}

Semantic roles & 50–950 ramp

primary
#AF279E
secondary
#6BC677
accent
#E75641
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF279E

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

Preview Lab → · Contrast checker → · Palette generator →

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