#AF26C3#AF26C3

#AF26C3 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.6% C 0.238 H 322.1°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#AF26C3
RGBrgb(175, 38, 195)
HSLhsl(292, 67%, 46%)
HSVhsv(292, 81%, 76%)
CMYKcmyk(10.3%, 80.5%, 0%, 23.5%)
CIE-LABlab(44.86, 71.24, -52.32)
CIE-LCHlch(44.86, 88.39, 323.71°)
OKLaboklab(55.64% 0.188 -0.1466)
OKLCHoklch(55.64% 0.238 322.1)
XYZxyz(28.2216, 14.4420, 52.9203)
Luminance0.1444 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF26C3 #3AC326
analogous
#6126C3 #AF26C3 #C32688
triadic
#AF26C3 #C3AF26 #26C3AF
tetradic
#AF26C3 #C36126 #3AC326 #2688C3
square
#AF26C3 #C36126 #3AC326 #2688C3
split-complementary
#AF26C3 #88C326 #26C361
monochromatic
#53125D #811C90 #AF26C3 #C94ADC #D97EE6

Accessibility & contrast

On white

5.40
#AF26C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#AF26C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF26C3
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF26C3#FFFFFF#000000##FFFFFF
##AF26C31.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C7
Deuteranopia (green-blind)
#3F6FC0
Tritanopia (blue-blind)
#B14876
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af26c3;
/* rgb */ color: rgb(175, 38, 195);
/* oklch */ color: oklch(55.6% 0.238 322.1);
Tailwind
colors: {
  custom: {
    50: '#cb72d6',
    500: '#af26c3',
    950: '#000000',
  },
}
SCSS
$custom: #af26c3;
$custom-light: #cb72d6;
$custom-dark: #000000;
JSON
{
  "hex": "#af26c3",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 195
  },
  "hsl": {
    "h": 292.357,
    "s": 67.382,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55635,
    "c": 0.23841,
    "h": 322.1
  },
  "luminance": 0.1444
}

Semantic roles & 50–950 ramp

primary
#AF26C3
secondary
#82CE77
accent
#EA3E54
background
#FDF7FD
surface
#FAEDFA
border
#D3C8D3
text
#140914
muted
#837B83

Preview Lab

Preview with #AF26C3

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

Preview Lab → · Contrast checker → · Palette generator →

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