#AF26A3#AF26A3

#AF26A3 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.7% C 0.215 H 332.1°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AF26A3
RGBrgb(175, 38, 163)
HSLhsl(305, 64%, 42%)
HSVhsv(305, 78%, 69%)
CMYKcmyk(0%, 78.3%, 6.9%, 31.4%)
CIE-LABlab(42.98, 66.05, -36.43)
CIE-LCHlch(42.98, 75.43, 331.12°)
OKLaboklab(53.7% 0.1897 -0.1003)
OKLCHoklch(53.7% 0.215 332.1)
XYZxyz(24.9833, 13.1466, 35.8650)
Luminance0.1315 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF26A3 #26AF32
analogous
#7626AF #AF26A3 #AF265F
triadic
#AF26A3 #A3AF26 #26A3AF
tetradic
#AF26A3 #AF7626 #26AF32 #265FAF
square
#AF26A3 #AF7626 #26AF32 #265FAF
split-complementary
#AF26A3 #5FAF26 #26AF76
monochromatic
#4A1045 #7D1B74 #AF26A3 #D53DC8 #E070D6

Accessibility & contrast

On white

5.79
#AF26A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF26A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF26A3
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF26A3#FFFFFF#000000##FFFFFF
##AF26A31.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B59A6
Deuteranopia (green-blind)
#556CA0
Tritanopia (blue-blind)
#B73764
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af26a3;
/* rgb */ color: rgb(175, 38, 163);
/* oklch */ color: oklch(53.7% 0.215 332.1);
Tailwind
colors: {
  custom: {
    50: '#cb71bf',
    500: '#af26a3',
    950: '#000000',
  },
}
SCSS
$custom: #af26a3;
$custom-light: #cb71bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af26a3",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 163
  },
  "hsl": {
    "h": 305.255,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.537,
    "c": 0.21458,
    "h": 332.1
  },
  "luminance": 0.13145
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF26A3

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

Preview Lab → · Contrast checker → · Palette generator →

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