#AF279D#AF279D

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

Color values

HEX#AF279D
RGBrgb(175, 39, 157)
HSLhsl(308, 64%, 42%)
HSVhsv(308, 78%, 69%)
CMYKcmyk(0%, 77.7%, 10.3%, 31.4%)
CIE-LABlab(42.77, 64.87, -33.17)
CIE-LCHlch(42.77, 72.86, 332.92°)
OKLaboklab(53.44% 0.1887 -0.0909)
OKLCHoklch(53.44% 0.209 334.3)
XYZxyz(24.4908, 13.0015, 33.1114)
Luminance0.1300 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF279D #27AF39
analogous
#7D27AF #AF279D #AF2759
triadic
#AF279D #9DAF27 #279DAF
tetradic
#AF279D #AF7D27 #27AF39 #2759AF
square
#AF279D #AF7D27 #27AF39 #2759AF
split-complementary
#AF279D #59AF27 #27AF7D
monochromatic
#4B1143 #7D1C70 #AF279D #D43FC0 #DF71D1

Accessibility & contrast

On white

5.83
#AF279D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AF279D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF279D
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF279D#FFFFFF#000000##FFFFFF
##AF279D1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2458A0
Deuteranopia (green-blind)
#586C9A
Tritanopia (blue-blind)
#B73561
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af279d;
/* rgb */ color: rgb(175, 39, 157);
/* oklch */ color: oklch(53.4% 0.209 334.3);
Tailwind
colors: {
  custom: {
    50: '#cb71ba',
    500: '#af279d',
    950: '#000000',
  },
}
SCSS
$custom: #af279d;
$custom-light: #cb71ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af279d",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 307.941,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53442,
    "c": 0.20942,
    "h": 334.3
  },
  "luminance": 0.12999
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF279D

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

Preview Lab → · Contrast checker → · Palette generator →

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