#AF26B0#AF26B0

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

Color values

HEX#AF26B0
RGBrgb(175, 38, 176)
HSLhsl(300, 64%, 42%)
HSVhsv(300, 78%, 69%)
CMYKcmyk(0.6%, 78.4%, 0%, 31%)
CIE-LABlab(43.71, 68.08, -43.01)
CIE-LCHlch(43.71, 80.53, 327.72°)
OKLaboklab(54.45% 0.1896 -0.1194)
OKLCHoklch(54.45% 0.224 327.8)
XYZxyz(26.2084, 13.6367, 42.3176)
Luminance0.1363 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF26B0 #27B026
analogous
#6A26B0 #AF26B0 #B0266C
triadic
#AF26B0 #B0AF26 #26B0AF
tetradic
#AF26B0 #B06A26 #27B026 #266CB0
square
#AF26B0 #B06A26 #27B026 #266CB0
split-complementary
#AF26B0 #6CB026 #26B06A
monochromatic
#4B104B #7D1B7E #AF26B0 #D43ED5 #DF70E0

Accessibility & contrast

On white

5.63
#AF26B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AF26B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF26B0
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF26B0#FFFFFF#000000##FFFFFF
##AF26B01.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB4
Deuteranopia (green-blind)
#4D6DAD
Tritanopia (blue-blind)
#B43E6B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af26b0;
/* rgb */ color: rgb(175, 38, 176);
/* oklch */ color: oklch(54.4% 0.224 327.8);
Tailwind
colors: {
  custom: {
    50: '#cb72c8',
    500: '#af26b0',
    950: '#000000',
  },
}
SCSS
$custom: #af26b0;
$custom-light: #cb72c8;
$custom-dark: #000000;
JSON
{
  "hex": "#af26b0",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 176
  },
  "hsl": {
    "h": 299.565,
    "s": 64.486,
    "l": 41.961
  },
  "oklch": {
    "l": 0.5445,
    "c": 0.22403,
    "h": 327.8
  },
  "luminance": 0.13635
}

Semantic roles & 50–950 ramp

primary
#AF26B0
secondary
#6BC76B
accent
#E74042
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF26B0

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

Preview Lab → · Contrast checker → · Palette generator →

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