#AF23A6#AF23A6

#AF23A6 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.7% C 0.219 H 331.1°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#AF23A6
RGBrgb(175, 35, 166)
HSLhsl(304, 67%, 41%)
HSVhsv(304, 80%, 69%)
CMYKcmyk(0%, 80%, 5.1%, 31.4%)
CIE-LABlab(42.87, 67.30, -38.40)
CIE-LCHlch(42.87, 77.49, 330.29°)
OKLaboklab(53.67% 0.192 -0.106)
OKLCHoklch(53.67% 0.219 331.1)
XYZxyz(25.1632, 13.0713, 37.2667)
Luminance0.1307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF23A6 #23AF2C
analogous
#7223AF #AF23A6 #AF2360
triadic
#AF23A6 #A6AF23 #23A6AF
tetradic
#AF23A6 #AF7223 #23AF2C #2360AF
square
#AF23A6 #AF7223 #23AF2C #2360AF
split-complementary
#AF23A6 #60AF23 #23AF72
monochromatic
#490F45 #7C1976 #AF23A6 #D738CD #E16BDA

Accessibility & contrast

On white

5.81
#AF23A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AF23A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF23A6
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF23A6#FFFFFF#000000##FFFFFF
##AF23A61.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F59A9
Deuteranopia (green-blind)
#526CA3
Tritanopia (blue-blind)
#B63765
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af23a6;
/* rgb */ color: rgb(175, 35, 166);
/* oklch */ color: oklch(53.7% 0.219 331.1);
Tailwind
colors: {
  custom: {
    50: '#cb70c1',
    500: '#af23a6',
    950: '#000000',
  },
}
SCSS
$custom: #af23a6;
$custom-light: #cb70c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af23a6",
  "rgb": {
    "r": 175,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 303.857,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53672,
    "c": 0.21934,
    "h": 331.1
  },
  "luminance": 0.13069
}

Semantic roles & 50–950 ramp

primary
#AF23A6
secondary
#66C76D
accent
#EA493E
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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