#AF23AB#AF23AB

#AF23AB is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.0% C 0.223 H 329.4°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#AF23AB
RGBrgb(175, 35, 171)
HSLhsl(302, 67%, 41%)
HSVhsv(302, 80%, 69%)
CMYKcmyk(0%, 80%, 2.3%, 31.4%)
CIE-LABlab(43.15, 68.07, -40.93)
CIE-LCHlch(43.15, 79.43, 328.98°)
OKLaboklab(53.96% 0.192 -0.1133)
OKLCHoklch(53.96% 0.223 329.4)
XYZxyz(25.6307, 13.2583, 39.7294)
Luminance0.1326 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF23AB #23AF27
analogous
#6D23AF #AF23AB #AF2365
triadic
#AF23AB #ABAF23 #23ABAF
tetradic
#AF23AB #AF6D23 #23AF27 #2365AF
square
#AF23AB #AF6D23 #23AF27 #2365AF
split-complementary
#AF23AB #65AF23 #23AF6D
monochromatic
#490F47 #7C1979 #AF23AB #D738D3 #E16BDE

Accessibility & contrast

On white

5.75
#AF23AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AF23AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF23AB
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF23AB#FFFFFF#000000##FFFFFF
##AF23AB1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAE
Deuteranopia (green-blind)
#4F6CA8
Tritanopia (blue-blind)
#B53A68
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af23ab;
/* rgb */ color: rgb(175, 35, 171);
/* oklch */ color: oklch(54.0% 0.223 329.4);
Tailwind
colors: {
  custom: {
    50: '#cb70c4',
    500: '#af23ab',
    950: '#000000',
  },
}
SCSS
$custom: #af23ab;
$custom-light: #cb70c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af23ab",
  "rgb": {
    "r": 175,
    "g": 35,
    "b": 171
  },
  "hsl": {
    "h": 301.714,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53961,
    "c": 0.22293,
    "h": 329.4
  },
  "luminance": 0.13256
}

Semantic roles & 50–950 ramp

primary
#AF23AB
secondary
#66C769
accent
#EA433E
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF23AB

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

Preview Lab → · Contrast checker → · Palette generator →

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