#AF23AF#AF23AF

#AF23AF is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.2% C 0.226 H 328.2°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#AF23AF
RGBrgb(175, 35, 175)
HSLhsl(300, 67%, 41%)
HSVhsv(300, 80%, 69%)
CMYKcmyk(0%, 80%, 0%, 31.4%)
CIE-LABlab(43.38, 68.70, -42.94)
CIE-LCHlch(43.38, 81.02, 327.99°)
OKLaboklab(54.2% 0.1918 -0.1192)
OKLCHoklch(54.2% 0.226 328.2)
XYZxyz(26.0178, 13.4131, 41.7678)
Luminance0.1341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF23AF #23AF23
analogous
#6923AF #AF23AF #AF2369
triadic
#AF23AF #AFAF23 #23AFAF
tetradic
#AF23AF #AF6923 #23AF23 #2369AF
square
#AF23AF #AF6923 #23AF23 #2369AF
split-complementary
#AF23AF #69AF23 #23AF69
monochromatic
#490F49 #7C197C #AF23AF #D738D7 #E16BE1

Accessibility & contrast

On white

5.70
#AF23AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AF23AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF23AF
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF23AF#FFFFFF#000000##FFFFFF
##AF23AF1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB3
Deuteranopia (green-blind)
#4D6DAC
Tritanopia (blue-blind)
#B53C6A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af23af;
/* rgb */ color: rgb(175, 35, 175);
/* oklch */ color: oklch(54.2% 0.226 328.2);
Tailwind
colors: {
  custom: {
    50: '#cb70c7',
    500: '#af23af',
    950: '#000000',
  },
}
SCSS
$custom: #af23af;
$custom-light: #cb70c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af23af",
  "rgb": {
    "r": 175,
    "g": 35,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.54198,
    "c": 0.22583,
    "h": 328.2
  },
  "luminance": 0.13411
}

Semantic roles & 50–950 ramp

primary
#AF23AF
secondary
#66C766
accent
#EA3E3E
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF23AF

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

Preview Lab → · Contrast checker → · Palette generator →

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