#AF23A3#AF23A3

#AF23A3 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.5% C 0.217 H 332.1°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AF23A3
RGBrgb(175, 35, 163)
HSLhsl(305, 67%, 41%)
HSVhsv(305, 80%, 69%)
CMYKcmyk(0%, 80%, 6.9%, 31.4%)
CIE-LABlab(42.71, 66.85, -36.87)
CIE-LCHlch(42.71, 76.34, 331.12°)
OKLaboklab(53.5% 0.192 -0.1015)
OKLCHoklch(53.5% 0.217 332.1)
XYZxyz(24.8912, 12.9625, 35.8343)
Luminance0.1296 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF23A3 #23AF2F
analogous
#7523AF #AF23A3 #AF235D
triadic
#AF23A3 #A3AF23 #23A3AF
tetradic
#AF23A3 #AF7523 #23AF2F #235DAF
square
#AF23A3 #AF7523 #23AF2F #235DAF
split-complementary
#AF23A3 #5DAF23 #23AF75
monochromatic
#490F44 #7C1973 #AF23A3 #D738CA #E16BD7

Accessibility & contrast

On white

5.85
#AF23A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF23A3
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF23A3#FFFFFF#000000##FFFFFF
##AF23A31.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1658A6
Deuteranopia (green-blind)
#546CA0
Tritanopia (blue-blind)
#B73563
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af23a3;
/* rgb */ color: rgb(175, 35, 163);
/* oklch */ color: oklch(53.5% 0.217 332.1);
Tailwind
colors: {
  custom: {
    50: '#cb70bf',
    500: '#af23a3',
    950: '#000000',
  },
}
SCSS
$custom: #af23a3;
$custom-light: #cb70bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af23a3",
  "rgb": {
    "r": 175,
    "g": 35,
    "b": 163
  },
  "hsl": {
    "h": 305.143,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53503,
    "c": 0.21722,
    "h": 332.1
  },
  "luminance": 0.1296
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF23A3

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

Preview Lab → · Contrast checker → · Palette generator →

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