#AF23A8#AF23A8

#AF23A8 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.8% C 0.221 H 330.4°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AF23A8
RGBrgb(175, 35, 168)
HSLhsl(303, 67%, 41%)
HSVhsv(303, 80%, 69%)
CMYKcmyk(0%, 80%, 4%, 31.4%)
CIE-LABlab(42.98, 67.61, -39.42)
CIE-LCHlch(42.98, 78.26, 329.76°)
OKLaboklab(53.79% 0.192 -0.1089)
OKLCHoklch(53.79% 0.221 330.4)
XYZxyz(25.3480, 13.1452, 38.2404)
Luminance0.1314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF23A8 #23AF2A
analogous
#7023AF #AF23A8 #AF2362
triadic
#AF23A8 #A8AF23 #23A8AF
tetradic
#AF23A8 #AF7023 #23AF2A #2362AF
square
#AF23A8 #AF7023 #23AF2A #2362AF
split-complementary
#AF23A8 #62AF23 #23AF70
monochromatic
#490F46 #7C1977 #AF23A8 #D738CF #E16BDB

Accessibility & contrast

On white

5.79
#AF23A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF23A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF23A8
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF23A8#FFFFFF#000000##FFFFFF
##AF23A81.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#095AAB
Deuteranopia (green-blind)
#516CA5
Tritanopia (blue-blind)
#B63866
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af23a8;
/* rgb */ color: rgb(175, 35, 168);
/* oklch */ color: oklch(53.8% 0.221 330.4);
Tailwind
colors: {
  custom: {
    50: '#cb70c2',
    500: '#af23a8',
    950: '#000000',
  },
}
SCSS
$custom: #af23a8;
$custom-light: #cb70c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af23a8",
  "rgb": {
    "r": 175,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 303,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53787,
    "c": 0.22077,
    "h": 330.4
  },
  "luminance": 0.13143
}

Semantic roles & 50–950 ramp

primary
#AF23A8
secondary
#66C76B
accent
#EA473E
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #AF23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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