#AF26A0#AF26A0

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

Color values

HEX#AF26A0
RGBrgb(175, 38, 160)
HSLhsl(307, 64%, 42%)
HSVhsv(307, 78%, 69%)
CMYKcmyk(0%, 78.3%, 8.6%, 31.4%)
CIE-LABlab(42.82, 65.60, -34.88)
CIE-LCHlch(42.82, 74.29, 332.00°)
OKLaboklab(53.54% 0.1896 -0.0958)
OKLCHoklch(53.54% 0.212 333.2)
XYZxyz(24.7176, 13.0404, 34.4661)
Luminance0.1304 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF26A0 #26AF35
analogous
#7A26AF #AF26A0 #AF265C
triadic
#AF26A0 #A0AF26 #26A0AF
tetradic
#AF26A0 #AF7A26 #26AF35 #265CAF
square
#AF26A0 #AF7A26 #26AF35 #265CAF
split-complementary
#AF26A0 #5CAF26 #26AF7A
monochromatic
#4A1044 #7D1B72 #AF26A0 #D53DC4 #E070D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF26A0#FFFFFF#000000##FFFFFF
##AF26A01.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)
#1F59A3
Deuteranopia (green-blind)
#566C9D
Tritanopia (blue-blind)
#B73662
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af26a0;
/* rgb */ color: rgb(175, 38, 160);
/* oklch */ color: oklch(53.5% 0.212 333.2);
Tailwind
colors: {
  custom: {
    50: '#cb71bc',
    500: '#af26a0',
    950: '#000000',
  },
}
SCSS
$custom: #af26a0;
$custom-light: #cb71bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af26a0",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 160
  },
  "hsl": {
    "h": 306.569,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53535,
    "c": 0.21246,
    "h": 333.2
  },
  "luminance": 0.13038
}

Semantic roles & 50–950 ramp

primary
#AF26A0
secondary
#6AC774
accent
#E75340
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF26A0

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

Preview Lab → · Contrast checker → · Palette generator →

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