#AF23A4#AF23A4

#AF23A4 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.6% C 0.218 H 331.8°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#AF23A4
RGBrgb(175, 35, 164)
HSLhsl(305, 67%, 41%)
HSVhsv(305, 80%, 69%)
CMYKcmyk(0%, 80%, 6.3%, 31.4%)
CIE-LABlab(42.76, 67.00, -37.38)
CIE-LCHlch(42.76, 76.72, 330.84°)
OKLaboklab(53.56% 0.192 -0.103)
OKLCHoklch(53.56% 0.218 331.8)
XYZxyz(24.9811, 12.9985, 36.3080)
Luminance0.1300 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF23A4 #23AF2E
analogous
#7423AF #AF23A4 #AF235E
triadic
#AF23A4 #A4AF23 #23A4AF
tetradic
#AF23A4 #AF7423 #23AF2E #235EAF
square
#AF23A4 #AF7423 #23AF2E #235EAF
split-complementary
#AF23A4 #5EAF23 #23AF74
monochromatic
#490F44 #7C1974 #AF23A4 #D738CB #E16BD8

Accessibility & contrast

On white

5.83
#AF23A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AF23A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF23A4
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF23A4#FFFFFF#000000##FFFFFF
##AF23A41.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1459A7
Deuteranopia (green-blind)
#536CA1
Tritanopia (blue-blind)
#B63664
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af23a4;
/* rgb */ color: rgb(175, 35, 164);
/* oklch */ color: oklch(53.6% 0.218 331.8);
Tailwind
colors: {
  custom: {
    50: '#cb70bf',
    500: '#af23a4',
    950: '#000000',
  },
}
SCSS
$custom: #af23a4;
$custom-light: #cb70bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af23a4",
  "rgb": {
    "r": 175,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 304.714,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53559,
    "c": 0.21792,
    "h": 331.8
  },
  "luminance": 0.12996
}

Semantic roles & 50–950 ramp

primary
#AF23A4
secondary
#66C76E
accent
#EA4C3E
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF23A4

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

Preview Lab → · Contrast checker → · Palette generator →

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