#AF26AB#AF26AB

#AF26AB is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.2% C 0.220 H 329.4°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#AF26AB
RGBrgb(175, 38, 171)
HSLhsl(302, 64%, 42%)
HSVhsv(302, 78%, 69%)
CMYKcmyk(0%, 78.3%, 2.3%, 31.4%)
CIE-LABlab(43.42, 67.29, -40.50)
CIE-LCHlch(43.42, 78.53, 328.96°)
OKLaboklab(54.16% 0.1897 -0.1121)
OKLCHoklch(54.16% 0.22 329.4)
XYZxyz(25.7228, 13.4425, 39.7601)
Luminance0.1344 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF26AB #26AF2A
analogous
#6F26AF #AF26AB #AF2667
triadic
#AF26AB #ABAF26 #26ABAF
tetradic
#AF26AB #AF6F26 #26AF2A #2667AF
square
#AF26AB #AF6F26 #26AF2A #2667AF
split-complementary
#AF26AB #67AF26 #26AF6F
monochromatic
#4A1049 #7D1B7A #AF26AB #D53DD1 #E070DD

Accessibility & contrast

On white

5.69
#AF26AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AF26AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF26AB
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF26AB#FFFFFF#000000##FFFFFF
##AF26AB1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#075BAE
Deuteranopia (green-blind)
#516DA8
Tritanopia (blue-blind)
#B53C68
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af26ab;
/* rgb */ color: rgb(175, 38, 171);
/* oklch */ color: oklch(54.2% 0.220 329.4);
Tailwind
colors: {
  custom: {
    50: '#cb71c4',
    500: '#af26ab',
    950: '#000000',
  },
}
SCSS
$custom: #af26ab;
$custom-light: #cb71c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af26ab",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 171
  },
  "hsl": {
    "h": 301.752,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.54155,
    "c": 0.22036,
    "h": 329.4
  },
  "luminance": 0.1344
}

Semantic roles & 50–950 ramp

primary
#AF26AB
secondary
#6AC76D
accent
#E74540
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF26AB

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

Preview Lab → · Contrast checker → · Palette generator →

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