#AF26A6#AF26A6

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

Color values

HEX#AF26A6
RGBrgb(175, 38, 166)
HSLhsl(304, 64%, 42%)
HSVhsv(304, 78%, 69%)
CMYKcmyk(0%, 78.3%, 5.1%, 31.4%)
CIE-LABlab(43.15, 66.51, -37.96)
CIE-LCHlch(43.15, 76.58, 330.28°)
OKLaboklab(53.87% 0.1898 -0.1047)
OKLCHoklch(53.87% 0.217 331.1)
XYZxyz(25.2552, 13.2554, 37.2974)
Luminance0.1325 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF26A6 #26AF2F
analogous
#7426AF #AF26A6 #AF2661
triadic
#AF26A6 #A6AF26 #26A6AF
tetradic
#AF26A6 #AF7426 #26AF2F #2661AF
square
#AF26A6 #AF7426 #26AF2F #2661AF
split-complementary
#AF26A6 #61AF26 #26AF74
monochromatic
#4A1047 #7D1B76 #AF26A6 #D53DCB #E070D8

Accessibility & contrast

On white

5.75
#AF26A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AF26A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF26A6
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF26A6#FFFFFF#000000##FFFFFF
##AF26A61.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155AA9
Deuteranopia (green-blind)
#536CA3
Tritanopia (blue-blind)
#B63965
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af26a6;
/* rgb */ color: rgb(175, 38, 166);
/* oklch */ color: oklch(53.9% 0.217 331.1);
Tailwind
colors: {
  custom: {
    50: '#cb71c1',
    500: '#af26a6',
    950: '#000000',
  },
}
SCSS
$custom: #af26a6;
$custom-light: #cb71c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af26a6",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 303.942,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53869,
    "c": 0.21673,
    "h": 331.1
  },
  "luminance": 0.13253
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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