#AF26AD#AF26AD

#AF26AD is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.3% C 0.222 H 328.8°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#AF26AD
RGBrgb(175, 38, 173)
HSLhsl(301, 64%, 42%)
HSVhsv(301, 78%, 69%)
CMYKcmyk(0%, 78.3%, 1.1%, 31.4%)
CIE-LABlab(43.54, 67.60, -41.51)
CIE-LCHlch(43.54, 79.33, 328.45°)
OKLaboklab(54.27% 0.1897 -0.115)
OKLCHoklch(54.27% 0.222 328.8)
XYZxyz(25.9149, 13.5193, 40.7716)
Luminance0.1352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF26AD #26AF28
analogous
#6D26AF #AF26AD #AF2669
triadic
#AF26AD #ADAF26 #26ADAF
tetradic
#AF26AD #AF6D26 #26AF28 #2669AF
square
#AF26AD #AF6D26 #26AF28 #2669AF
split-complementary
#AF26AD #69AF26 #26AF6D
monochromatic
#4A104A #7D1B7B #AF26AD #D53DD3 #E070DE

Accessibility & contrast

On white

5.67
#AF26AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF26AD
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF26AD#FFFFFF#000000##FFFFFF
##AF26AD1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB1
Deuteranopia (green-blind)
#4F6DAA
Tritanopia (blue-blind)
#B53D69
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af26ad;
/* rgb */ color: rgb(175, 38, 173);
/* oklch */ color: oklch(54.3% 0.222 328.8);
Tailwind
colors: {
  custom: {
    50: '#cb71c6',
    500: '#af26ad',
    950: '#000000',
  },
}
SCSS
$custom: #af26ad;
$custom-light: #cb71c6;
$custom-dark: #000000;
JSON
{
  "hex": "#af26ad",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 173
  },
  "hsl": {
    "h": 300.876,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.54272,
    "c": 0.22182,
    "h": 328.8
  },
  "luminance": 0.13517
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF26AD

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

Preview Lab → · Contrast checker → · Palette generator →

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