#AF26AC#AF26AC

#AF26AC is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.2% C 0.221 H 329.1°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#AF26AC
RGBrgb(175, 38, 172)
HSLhsl(301, 64%, 42%)
HSVhsv(301, 78%, 69%)
CMYKcmyk(0%, 78.3%, 1.7%, 31.4%)
CIE-LABlab(43.48, 67.44, -41.00)
CIE-LCHlch(43.48, 78.93, 328.70°)
OKLaboklab(54.21% 0.1897 -0.1135)
OKLCHoklch(54.21% 0.221 329.1)
XYZxyz(25.8185, 13.4807, 40.2639)
Luminance0.1348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF26AC #26AF29
analogous
#6E26AF #AF26AC #AF2668
triadic
#AF26AC #ACAF26 #26ACAF
tetradic
#AF26AC #AF6E26 #26AF29 #2668AF
square
#AF26AC #AF6E26 #26AF29 #2668AF
split-complementary
#AF26AC #68AF26 #26AF6E
monochromatic
#4A1049 #7D1B7B #AF26AC #D53DD2 #E070DD

Accessibility & contrast

On white

5.68
#AF26AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AF26AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF26AC
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF26AC#FFFFFF#000000##FFFFFF
##AF26AC1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#045BAF
Deuteranopia (green-blind)
#506DA9
Tritanopia (blue-blind)
#B53C69
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af26ac;
/* rgb */ color: rgb(175, 38, 172);
/* oklch */ color: oklch(54.2% 0.221 329.1);
Tailwind
colors: {
  custom: {
    50: '#cb71c5',
    500: '#af26ac',
    950: '#000000',
  },
}
SCSS
$custom: #af26ac;
$custom-light: #cb71c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af26ac",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 172
  },
  "hsl": {
    "h": 301.314,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.54214,
    "c": 0.22109,
    "h": 329.1
  },
  "luminance": 0.13479
}

Semantic roles & 50–950 ramp

primary
#AF26AC
secondary
#6AC76C
accent
#E74440
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF26AC

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

Preview Lab → · Contrast checker → · Palette generator →

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