#AF26A7#AF26A7

#AF26A7 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.9% C 0.217 H 330.8°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#AF26A7
RGBrgb(175, 38, 167)
HSLhsl(304, 64%, 42%)
HSVhsv(304, 78%, 69%)
CMYKcmyk(0%, 78.3%, 4.6%, 31.4%)
CIE-LABlab(43.20, 66.66, -38.47)
CIE-LCHlch(43.20, 76.97, 330.01°)
OKLaboklab(53.93% 0.1898 -0.1062)
OKLCHoklch(53.93% 0.217 330.8)
XYZxyz(25.3473, 13.2923, 37.7824)
Luminance0.1329 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF26A7 #26AF2E
analogous
#7326AF #AF26A7 #AF2662
triadic
#AF26A7 #A7AF26 #26A7AF
tetradic
#AF26A7 #AF7326 #26AF2E #2662AF
square
#AF26A7 #AF7326 #26AF2E #2662AF
split-complementary
#AF26A7 #62AF26 #26AF73
monochromatic
#4A1047 #7D1B77 #AF26A7 #D53DCC #E070D9

Accessibility & contrast

On white

5.74
#AF26A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AF26A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF26A7
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF26A7#FFFFFF#000000##FFFFFF
##AF26A71.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135AAA
Deuteranopia (green-blind)
#536CA4
Tritanopia (blue-blind)
#B63966
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af26a7;
/* rgb */ color: rgb(175, 38, 167);
/* oklch */ color: oklch(53.9% 0.217 330.8);
Tailwind
colors: {
  custom: {
    50: '#cb71c1',
    500: '#af26a7',
    950: '#000000',
  },
}
SCSS
$custom: #af26a7;
$custom-light: #cb71c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af26a7",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 303.504,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53925,
    "c": 0.21745,
    "h": 330.8
  },
  "luminance": 0.1329
}

Semantic roles & 50–950 ramp

primary
#AF26A7
secondary
#6AC770
accent
#E74A40
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF26A7

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

Preview Lab → · Contrast checker → · Palette generator →

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