#AF26A2#AF26A2

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

Color values

HEX#AF26A2
RGBrgb(175, 38, 162)
HSLhsl(306, 64%, 42%)
HSVhsv(306, 78%, 69%)
CMYKcmyk(0%, 78.3%, 7.4%, 31.4%)
CIE-LABlab(42.93, 65.90, -35.91)
CIE-LCHlch(42.93, 75.05, 331.41°)
OKLaboklab(53.65% 0.1897 -0.0988)
OKLCHoklch(53.65% 0.214 332.5)
XYZxyz(24.8940, 13.1110, 35.3950)
Luminance0.1311 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF26A2 #26AF33
analogous
#7726AF #AF26A2 #AF265E
triadic
#AF26A2 #A2AF26 #26A2AF
tetradic
#AF26A2 #AF7726 #26AF33 #265EAF
square
#AF26A2 #AF7726 #26AF33 #265EAF
split-complementary
#AF26A2 #5EAF26 #26AF77
monochromatic
#4A1045 #7D1B73 #AF26A2 #D53DC7 #E070D5

Accessibility & contrast

On white

5.80
#AF26A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AF26A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF26A2
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF26A2#FFFFFF#000000##FFFFFF
##AF26A21.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C59A5
Deuteranopia (green-blind)
#556C9F
Tritanopia (blue-blind)
#B73763
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af26a2;
/* rgb */ color: rgb(175, 38, 162);
/* oklch */ color: oklch(53.6% 0.214 332.5);
Tailwind
colors: {
  custom: {
    50: '#cb71be',
    500: '#af26a2',
    950: '#000000',
  },
}
SCSS
$custom: #af26a2;
$custom-light: #cb71be;
$custom-dark: #000000;
JSON
{
  "hex": "#af26a2",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 305.693,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53645,
    "c": 0.21387,
    "h": 332.5
  },
  "luminance": 0.13109
}

Semantic roles & 50–950 ramp

primary
#AF26A2
secondary
#6AC773
accent
#E75040
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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