#AF23A7#AF23A7

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

Color values

HEX#AF23A7
RGBrgb(175, 35, 167)
HSLhsl(303, 67%, 41%)
HSVhsv(303, 80%, 69%)
CMYKcmyk(0%, 80%, 4.6%, 31.4%)
CIE-LABlab(42.93, 67.46, -38.91)
CIE-LCHlch(42.93, 77.87, 330.02°)
OKLaboklab(53.73% 0.192 -0.1074)
OKLCHoklch(53.73% 0.22 330.8)
XYZxyz(25.2552, 13.1081, 37.7517)
Luminance0.1311 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF23A7 #23AF2B
analogous
#7123AF #AF23A7 #AF2361
triadic
#AF23A7 #A7AF23 #23A7AF
tetradic
#AF23A7 #AF7123 #23AF2B #2361AF
square
#AF23A7 #AF7123 #23AF2B #2361AF
split-complementary
#AF23A7 #61AF23 #23AF71
monochromatic
#490F46 #7C1976 #AF23A7 #D738CE #E16BDB

Accessibility & contrast

On white

5.80
#AF23A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AF23A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF23A7
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF23A7#FFFFFF#000000##FFFFFF
##AF23A71.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C59AA
Deuteranopia (green-blind)
#526CA4
Tritanopia (blue-blind)
#B63865
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af23a7;
/* rgb */ color: rgb(175, 35, 167);
/* oklch */ color: oklch(53.7% 0.220 330.8);
Tailwind
colors: {
  custom: {
    50: '#cb70c1',
    500: '#af23a7',
    950: '#000000',
  },
}
SCSS
$custom: #af23a7;
$custom-light: #cb70c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af23a7",
  "rgb": {
    "r": 175,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 303.429,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.5373,
    "c": 0.22006,
    "h": 330.8
  },
  "luminance": 0.13106
}

Semantic roles & 50–950 ramp

primary
#AF23A7
secondary
#66C76C
accent
#EA483E
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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