#AF26AA#AF26AA

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

Color values

HEX#AF26AA
RGBrgb(175, 38, 170)
HSLhsl(302, 64%, 42%)
HSVhsv(302, 78%, 69%)
CMYKcmyk(0%, 78.3%, 2.9%, 31.4%)
CIE-LABlab(43.37, 67.13, -39.99)
CIE-LCHlch(43.37, 78.14, 329.21°)
OKLaboklab(54.1% 0.1897 -0.1106)
OKLCHoklch(54.1% 0.22 329.8)
XYZxyz(25.6279, 13.4045, 39.2600)
Luminance0.1340 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF26AA #26AF2B
analogous
#7026AF #AF26AA #AF2666
triadic
#AF26AA #AAAF26 #26AAAF
tetradic
#AF26AA #AF7026 #26AF2B #2666AF
square
#AF26AA #AF7026 #26AF2B #2666AF
split-complementary
#AF26AA #66AF26 #26AF70
monochromatic
#4A1048 #7D1B79 #AF26AA #D53DCF #E070DC

Accessibility & contrast

On white

5.71
#AF26AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AF26AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF26AA
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF26AA#FFFFFF#000000##FFFFFF
##AF26AA1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5BAD
Deuteranopia (green-blind)
#516DA7
Tritanopia (blue-blind)
#B53B68
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af26aa;
/* rgb */ color: rgb(175, 38, 170);
/* oklch */ color: oklch(54.1% 0.220 329.8);
Tailwind
colors: {
  custom: {
    50: '#cb71c4',
    500: '#af26aa',
    950: '#000000',
  },
}
SCSS
$custom: #af26aa;
$custom-light: #cb71c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af26aa",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 170
  },
  "hsl": {
    "h": 302.19,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.54097,
    "c": 0.21962,
    "h": 329.8
  },
  "luminance": 0.13402
}

Semantic roles & 50–950 ramp

primary
#AF26AA
secondary
#6AC76E
accent
#E74740
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF26AA

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

Preview Lab → · Contrast checker → · Palette generator →

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