#AF23B0#AF23B0

#AF23B0 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.3% C 0.227 H 327.8°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#AF23B0
RGBrgb(175, 35, 176)
HSLhsl(300, 67%, 41%)
HSVhsv(300, 80%, 69%)
CMYKcmyk(0.6%, 80.1%, 0%, 31%)
CIE-LABlab(43.44, 68.86, -43.44)
CIE-LCHlch(43.44, 81.42, 327.75°)
OKLaboklab(54.26% 0.1918 -0.1206)
OKLCHoklch(54.26% 0.227 327.8)
XYZxyz(26.1164, 13.4526, 42.2870)
Luminance0.1345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF23B0 #24B023
analogous
#6923B0 #AF23B0 #B0236B
triadic
#AF23B0 #B0AF23 #23B0AF
tetradic
#AF23B0 #B06923 #24B023 #236BB0
square
#AF23B0 #B06923 #24B023 #236BB0
split-complementary
#AF23B0 #6BB023 #23B069
monochromatic
#490F4A #7C197D #AF23B0 #D639D8 #E16CE2

Accessibility & contrast

On white

5.69
#AF23B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AF23B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF23B0
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF23B0#FFFFFF#000000##FFFFFF
##AF23B01.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB4
Deuteranopia (green-blind)
#4C6DAD
Tritanopia (blue-blind)
#B53D6B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af23b0;
/* rgb */ color: rgb(175, 35, 176);
/* oklch */ color: oklch(54.3% 0.227 327.8);
Tailwind
colors: {
  custom: {
    50: '#cb71c8',
    500: '#af23b0',
    950: '#000000',
  },
}
SCSS
$custom: #af23b0;
$custom-light: #cb71c8;
$custom-dark: #000000;
JSON
{
  "hex": "#af23b0",
  "rgb": {
    "r": 175,
    "g": 35,
    "b": 176
  },
  "hsl": {
    "h": 299.574,
    "s": 66.825,
    "l": 41.373
  },
  "oklch": {
    "l": 0.54258,
    "c": 0.22656,
    "h": 327.8
  },
  "luminance": 0.13451
}

Semantic roles & 50–950 ramp

primary
#AF23B0
secondary
#68C867
accent
#EA3E3F
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF23B0

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

Preview Lab → · Contrast checker → · Palette generator →

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