#AF26A1#AF26A1

#AF26A1 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.6% C 0.213 H 332.8°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#AF26A1
RGBrgb(175, 38, 161)
HSLhsl(306, 64%, 42%)
HSVhsv(306, 78%, 69%)
CMYKcmyk(0%, 78.3%, 8%, 31.4%)
CIE-LABlab(42.88, 65.75, -35.40)
CIE-LCHlch(42.88, 74.67, 331.70°)
OKLaboklab(53.59% 0.1897 -0.0973)
OKLCHoklch(53.59% 0.213 332.8)
XYZxyz(24.8055, 13.0755, 34.9287)
Luminance0.1307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF26A1 #26AF34
analogous
#7826AF #AF26A1 #AF265D
triadic
#AF26A1 #A1AF26 #26A1AF
tetradic
#AF26A1 #AF7826 #26AF34 #265DAF
square
#AF26A1 #AF7826 #26AF34 #265DAF
split-complementary
#AF26A1 #5DAF26 #26AF78
monochromatic
#4A1044 #7D1B73 #AF26A1 #D53DC5 #E070D4

Accessibility & contrast

On white

5.81
#AF26A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AF26A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF26A1
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF26A1#FFFFFF#000000##FFFFFF
##AF26A11.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E59A4
Deuteranopia (green-blind)
#566C9E
Tritanopia (blue-blind)
#B73663
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af26a1;
/* rgb */ color: rgb(175, 38, 161);
/* oklch */ color: oklch(53.6% 0.213 332.8);
Tailwind
colors: {
  custom: {
    50: '#cb71bd',
    500: '#af26a1',
    950: '#000000',
  },
}
SCSS
$custom: #af26a1;
$custom-light: #cb71bd;
$custom-dark: #000000;
JSON
{
  "hex": "#af26a1",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 161
  },
  "hsl": {
    "h": 306.131,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5359,
    "c": 0.21316,
    "h": 332.8
  },
  "luminance": 0.13073
}

Semantic roles & 50–950 ramp

primary
#AF26A1
secondary
#6AC774
accent
#E75240
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF26A1

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

Preview Lab → · Contrast checker → · Palette generator →

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