#AF279C#AF279C

#AF279C is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.4% C 0.209 H 334.6°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#AF279C
RGBrgb(175, 39, 156)
HSLhsl(308, 64%, 42%)
HSVhsv(308, 78%, 69%)
CMYKcmyk(0%, 77.7%, 10.9%, 31.4%)
CIE-LABlab(42.71, 64.72, -32.65)
CIE-LCHlch(42.71, 72.49, 333.23°)
OKLaboklab(53.39% 0.1886 -0.0894)
OKLCHoklch(53.39% 0.209 334.6)
XYZxyz(24.4058, 12.9675, 32.6637)
Luminance0.1296 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF279C #27AF3A
analogous
#7E27AF #AF279C #AF2758
triadic
#AF279C #9CAF27 #279CAF
tetradic
#AF279C #AF7E27 #27AF3A #2758AF
square
#AF279C #AF7E27 #27AF3A #2758AF
split-complementary
#AF279C #58AF27 #27AF7E
monochromatic
#4B1143 #7D1C6F #AF279C #D43FBF #DF71D0

Accessibility & contrast

On white

5.84
#AF279C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF279C
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF279C#FFFFFF#000000##FFFFFF
##AF279C1.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25589F
Deuteranopia (green-blind)
#596C99
Tritanopia (blue-blind)
#B83460
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af279c;
/* rgb */ color: rgb(175, 39, 156);
/* oklch */ color: oklch(53.4% 0.209 334.6);
Tailwind
colors: {
  custom: {
    50: '#cb71b9',
    500: '#af279c',
    950: '#000000',
  },
}
SCSS
$custom: #af279c;
$custom-light: #cb71b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af279c",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 308.382,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53389,
    "c": 0.20872,
    "h": 334.6
  },
  "luminance": 0.12965
}

Semantic roles & 50–950 ramp

primary
#AF279C
secondary
#6BC678
accent
#E75841
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF279C

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

Preview Lab → · Contrast checker → · Palette generator →

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