#AF23BC#AF23BC

#AF23BC is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 55.0% C 0.235 H 324.2°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AF23BC
RGBrgb(175, 35, 188)
HSLhsl(295, 69%, 44%)
HSVhsv(295, 81%, 74%)
CMYKcmyk(6.9%, 81.4%, 0%, 26.3%)
CIE-LABlab(44.16, 70.82, -49.35)
CIE-LCHlch(44.16, 86.32, 325.13°)
OKLaboklab(55% 0.1909 -0.1379)
OKLCHoklch(55% 0.235 324.2)
XYZxyz(27.3566, 13.9487, 48.8187)
Luminance0.1395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF23BC #30BC23
analogous
#6223BC #AF23BC #BC237C
triadic
#AF23BC #BCAF23 #23BCAF
tetradic
#AF23BC #BC6223 #30BC23 #237CBC
square
#AF23BC #BC6223 #30BC23 #237CBC
split-complementary
#AF23BC #7CBC23 #23BC62
monochromatic
#4F1055 #7F1988 #AF23BC #CE41DC #DC74E5

Accessibility & contrast

On white

5.54
#AF23BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#AF23BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF23BC
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF23BC#FFFFFF#000000##FFFFFF
##AF23BC1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#446EB9
Tritanopia (blue-blind)
#B24371
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af23bc;
/* rgb */ color: rgb(175, 35, 188);
/* oklch */ color: oklch(55.0% 0.235 324.2);
Tailwind
colors: {
  custom: {
    50: '#cb71d1',
    500: '#af23bc',
    950: '#000000',
  },
}
SCSS
$custom: #af23bc;
$custom-light: #cb71d1;
$custom-dark: #000000;
JSON
{
  "hex": "#af23bc",
  "rgb": {
    "r": 175,
    "g": 35,
    "b": 188
  },
  "hsl": {
    "h": 294.902,
    "s": 68.61,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55,
    "c": 0.23546,
    "h": 324.2
  },
  "luminance": 0.13947
}

Semantic roles & 50–950 ramp

primary
#AF23BC
secondary
#76CC6F
accent
#EB3C4B
background
#FDF7FC
surface
#FAEDF9
border
#D3C8D2
text
#140914
muted
#837B82

Preview Lab

Preview with #AF23BC

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

Preview Lab → · Contrast checker → · Palette generator →

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