#AF26B1#AF26B1

#AF26B1 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.5% C 0.225 H 327.5°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#AF26B1
RGBrgb(175, 38, 177)
HSLhsl(299, 65%, 42%)
HSVhsv(299, 79%, 69%)
CMYKcmyk(1.1%, 78.5%, 0%, 30.6%)
CIE-LABlab(43.77, 68.24, -43.51)
CIE-LCHlch(43.77, 80.93, 327.48°)
OKLaboklab(54.51% 0.1895 -0.1208)
OKLCHoklch(54.51% 0.225 327.5)
XYZxyz(26.3077, 13.6764, 42.8406)
Luminance0.1368 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF26B1 #28B126
analogous
#6A26B1 #AF26B1 #B1266D
triadic
#AF26B1 #B1AF26 #26B1AF
tetradic
#AF26B1 #B16A26 #28B126 #266DB1
square
#AF26B1 #B16A26 #28B126 #266DB1
split-complementary
#AF26B1 #6DB126 #26B16A
monochromatic
#4B104C #7D1B7F #AF26B1 #D43FD6 #DF71E0

Accessibility & contrast

On white

5.62
#AF26B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#AF26B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF26B1
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF26B1#FFFFFF#000000##FFFFFF
##AF26B11.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#4D6DAE
Tritanopia (blue-blind)
#B43F6C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af26b1;
/* rgb */ color: rgb(175, 38, 177);
/* oklch */ color: oklch(54.5% 0.225 327.5);
Tailwind
colors: {
  custom: {
    50: '#cb72c9',
    500: '#af26b1',
    950: '#000000',
  },
}
SCSS
$custom: #af26b1;
$custom-light: #cb72c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af26b1",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 299.137,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.5451,
    "c": 0.22478,
    "h": 327.5
  },
  "luminance": 0.13675
}

Semantic roles & 50–950 ramp

primary
#AF26B1
secondary
#6DC76B
accent
#E84043
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF26B1

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

Preview Lab → · Contrast checker → · Palette generator →

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