#AF26A4#AF26A4

#AF26A4 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.8% C 0.215 H 331.8°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AF26A4
RGBrgb(175, 38, 164)
HSLhsl(305, 64%, 42%)
HSVhsv(305, 78%, 69%)
CMYKcmyk(0%, 78.3%, 6.3%, 31.4%)
CIE-LABlab(43.04, 66.20, -36.94)
CIE-LCHlch(43.04, 75.81, 330.84°)
OKLaboklab(53.76% 0.1897 -0.1018)
OKLCHoklch(53.76% 0.215 331.8)
XYZxyz(25.0732, 13.1826, 36.3387)
Luminance0.1318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF26A4 #26AF31
analogous
#7626AF #AF26A4 #AF265F
triadic
#AF26A4 #A4AF26 #26A4AF
tetradic
#AF26A4 #AF7626 #26AF31 #265FAF
square
#AF26A4 #AF7626 #26AF31 #265FAF
split-complementary
#AF26A4 #5FAF26 #26AF76
monochromatic
#4A1046 #7D1B75 #AF26A4 #D53DC9 #E070D7

Accessibility & contrast

On white

5.78
#AF26A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AF26A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF26A4
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF26A4#FFFFFF#000000##FFFFFF
##AF26A41.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195AA7
Deuteranopia (green-blind)
#546CA1
Tritanopia (blue-blind)
#B63864
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af26a4;
/* rgb */ color: rgb(175, 38, 164);
/* oklch */ color: oklch(53.8% 0.215 331.8);
Tailwind
colors: {
  custom: {
    50: '#cb71bf',
    500: '#af26a4',
    950: '#000000',
  },
}
SCSS
$custom: #af26a4;
$custom-light: #cb71bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af26a4",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 164
  },
  "hsl": {
    "h": 304.818,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53756,
    "c": 0.21529,
    "h": 331.8
  },
  "luminance": 0.13181
}

Semantic roles & 50–950 ramp

primary
#AF26A4
secondary
#6AC772
accent
#E74E40
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF26A4

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

Preview Lab → · Contrast checker → · Palette generator →

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