#AF23A2#AF23A2

#AF23A2 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.4% C 0.217 H 332.5°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#AF23A2
RGBrgb(175, 35, 162)
HSLhsl(306, 67%, 41%)
HSVhsv(306, 80%, 69%)
CMYKcmyk(0%, 80%, 7.4%, 31.4%)
CIE-LABlab(42.65, 66.70, -36.35)
CIE-LCHlch(42.65, 75.96, 331.41°)
OKLaboklab(53.45% 0.192 -0.1)
OKLCHoklch(53.45% 0.217 332.5)
XYZxyz(24.8019, 12.9268, 35.3643)
Luminance0.1293 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF23A2 #23AF30
analogous
#7623AF #AF23A2 #AF235C
triadic
#AF23A2 #A2AF23 #23A2AF
tetradic
#AF23A2 #AF7623 #23AF30 #235CAF
square
#AF23A2 #AF7623 #23AF30 #235CAF
split-complementary
#AF23A2 #5CAF23 #23AF76
monochromatic
#490F44 #7C1973 #AF23A2 #D738C8 #E16BD6

Accessibility & contrast

On white

5.86
#AF23A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AF23A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF23A2
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF23A2#FFFFFF#000000##FFFFFF
##AF23A21.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1858A5
Deuteranopia (green-blind)
#546C9F
Tritanopia (blue-blind)
#B73562
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af23a2;
/* rgb */ color: rgb(175, 35, 162);
/* oklch */ color: oklch(53.4% 0.217 332.5);
Tailwind
colors: {
  custom: {
    50: '#cb70be',
    500: '#af23a2',
    950: '#000000',
  },
}
SCSS
$custom: #af23a2;
$custom-light: #cb70be;
$custom-dark: #000000;
JSON
{
  "hex": "#af23a2",
  "rgb": {
    "r": 175,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 305.571,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53447,
    "c": 0.21652,
    "h": 332.5
  },
  "luminance": 0.12925
}

Semantic roles & 50–950 ramp

primary
#AF23A2
secondary
#66C76F
accent
#EA4E3E
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF23A2

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

Preview Lab → · Contrast checker → · Palette generator →

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