#AF26AF#AF26AF

#AF26AF is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.4% C 0.223 H 328.1°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#AF26AF
RGBrgb(175, 38, 175)
HSLhsl(300, 64%, 42%)
HSVhsv(300, 78%, 69%)
CMYKcmyk(0%, 78.3%, 0%, 31.4%)
CIE-LABlab(43.65, 67.92, -42.51)
CIE-LCHlch(43.65, 80.13, 327.96°)
OKLaboklab(54.39% 0.1896 -0.1179)
OKLCHoklch(54.39% 0.223 328.1)
XYZxyz(26.1099, 13.5973, 41.7985)
Luminance0.1359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF26AF #26AF26
analogous
#6B26AF #AF26AF #AF266B
triadic
#AF26AF #AFAF26 #26AFAF
tetradic
#AF26AF #AF6B26 #26AF26 #266BAF
square
#AF26AF #AF6B26 #26AF26 #266BAF
split-complementary
#AF26AF #6BAF26 #26AF6B
monochromatic
#4A104A #7D1B7D #AF26AF #D53DD5 #E070E0

Accessibility & contrast

On white

5.65
#AF26AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#AF26AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF26AF
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF26AF#FFFFFF#000000##FFFFFF
##AF26AF1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB3
Deuteranopia (green-blind)
#4E6DAC
Tritanopia (blue-blind)
#B53E6B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af26af;
/* rgb */ color: rgb(175, 38, 175);
/* oklch */ color: oklch(54.4% 0.223 328.1);
Tailwind
colors: {
  custom: {
    50: '#cb71c7',
    500: '#af26af',
    950: '#000000',
  },
}
SCSS
$custom: #af26af;
$custom-light: #cb71c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af26af",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5439,
    "c": 0.22329,
    "h": 328.1
  },
  "luminance": 0.13595
}

Semantic roles & 50–950 ramp

primary
#AF26AF
secondary
#6AC76A
accent
#E74040
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF26AF

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

Preview Lab → · Contrast checker → · Palette generator →

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