#AF23A5#AF23A5

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

Color values

HEX#AF23A5
RGBrgb(175, 35, 165)
HSLhsl(304, 67%, 41%)
HSVhsv(304, 80%, 69%)
CMYKcmyk(0%, 80%, 5.7%, 31.4%)
CIE-LABlab(42.82, 67.15, -37.89)
CIE-LCHlch(42.82, 77.10, 330.57°)
OKLaboklab(53.62% 0.192 -0.1045)
OKLCHoklch(53.62% 0.219 331.4)
XYZxyz(25.0718, 13.0347, 36.7855)
Luminance0.1303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF23A5 #23AF2D
analogous
#7323AF #AF23A5 #AF235F
triadic
#AF23A5 #A5AF23 #23A5AF
tetradic
#AF23A5 #AF7323 #23AF2D #235FAF
square
#AF23A5 #AF7323 #23AF2D #235FAF
split-complementary
#AF23A5 #5FAF23 #23AF73
monochromatic
#490F45 #7C1975 #AF23A5 #D738CC #E16BD9

Accessibility & contrast

On white

5.82
#AF23A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF23A5
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF23A5#FFFFFF#000000##FFFFFF
##AF23A51.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1259A8
Deuteranopia (green-blind)
#536CA2
Tritanopia (blue-blind)
#B63764
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af23a5;
/* rgb */ color: rgb(175, 35, 165);
/* oklch */ color: oklch(53.6% 0.219 331.4);
Tailwind
colors: {
  custom: {
    50: '#cb70c0',
    500: '#af23a5',
    950: '#000000',
  },
}
SCSS
$custom: #af23a5;
$custom-light: #cb70c0;
$custom-dark: #000000;
JSON
{
  "hex": "#af23a5",
  "rgb": {
    "r": 175,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 304.286,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53616,
    "c": 0.21863,
    "h": 331.4
  },
  "luminance": 0.13033
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF23A5

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

Preview Lab → · Contrast checker → · Palette generator →

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