#AF26A8#AF26A8

#AF26A8 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.0% C 0.218 H 330.4°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AF26A8
RGBrgb(175, 38, 168)
HSLhsl(303, 64%, 42%)
HSVhsv(303, 78%, 69%)
CMYKcmyk(0%, 78.3%, 4%, 31.4%)
CIE-LABlab(43.26, 66.82, -38.98)
CIE-LCHlch(43.26, 77.36, 329.74°)
OKLaboklab(53.98% 0.1898 -0.1077)
OKLCHoklch(53.98% 0.218 330.4)
XYZxyz(25.4401, 13.3294, 38.2711)
Luminance0.1333 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF26A8 #26AF2D
analogous
#7226AF #AF26A8 #AF2664
triadic
#AF26A8 #A8AF26 #26A8AF
tetradic
#AF26A8 #AF7226 #26AF2D #2664AF
square
#AF26A8 #AF7226 #26AF2D #2664AF
split-complementary
#AF26A8 #64AF26 #26AF72
monochromatic
#4A1047 #7D1B78 #AF26A8 #D53DCD #E070DA

Accessibility & contrast

On white

5.73
#AF26A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AF26A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF26A8
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF26A8#FFFFFF#000000##FFFFFF
##AF26A81.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115AAB
Deuteranopia (green-blind)
#526DA5
Tritanopia (blue-blind)
#B63A67
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af26a8;
/* rgb */ color: rgb(175, 38, 168);
/* oklch */ color: oklch(54.0% 0.218 330.4);
Tailwind
colors: {
  custom: {
    50: '#cb71c2',
    500: '#af26a8',
    950: '#000000',
  },
}
SCSS
$custom: #af26a8;
$custom-light: #cb71c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af26a8",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 303.066,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53982,
    "c": 0.21817,
    "h": 330.4
  },
  "luminance": 0.13327
}

Semantic roles & 50–950 ramp

primary
#AF26A8
secondary
#6AC76F
accent
#E74940
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #AF26A8

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

Preview Lab → · Contrast checker → · Palette generator →

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