#AF239F#AF239F

#AF239F is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.3% C 0.214 H 333.5°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#AF239F
RGBrgb(175, 35, 159)
HSLhsl(307, 67%, 41%)
HSVhsv(307, 80%, 69%)
CMYKcmyk(0%, 80%, 9.1%, 31.4%)
CIE-LABlab(42.49, 66.25, -34.81)
CIE-LCHlch(42.49, 74.84, 332.28°)
OKLaboklab(53.28% 0.192 -0.0956)
OKLCHoklch(53.28% 0.214 333.5)
XYZxyz(24.5384, 12.8214, 33.9766)
Luminance0.1282 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF239F #23AF33
analogous
#7923AF #AF239F #AF2359
triadic
#AF239F #9FAF23 #239FAF
tetradic
#AF239F #AF7923 #23AF33 #2359AF
square
#AF239F #AF7923 #23AF33 #2359AF
split-complementary
#AF239F #59AF23 #23AF79
monochromatic
#490F42 #7C1971 #AF239F #D738C5 #E16BD4

Accessibility & contrast

On white

5.89
#AF239F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AF239F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF239F
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF239F#FFFFFF#000000##FFFFFF
##AF239F1.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C58A2
Deuteranopia (green-blind)
#566B9C
Tritanopia (blue-blind)
#B73361
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af239f;
/* rgb */ color: rgb(175, 35, 159);
/* oklch */ color: oklch(53.3% 0.214 333.5);
Tailwind
colors: {
  custom: {
    50: '#cb70bc',
    500: '#af239f',
    950: '#000000',
  },
}
SCSS
$custom: #af239f;
$custom-light: #cb70bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af239f",
  "rgb": {
    "r": 175,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 306.857,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53281,
    "c": 0.21443,
    "h": 333.5
  },
  "luminance": 0.12819
}

Semantic roles & 50–950 ramp

primary
#AF239F
secondary
#66C771
accent
#EA523E
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF239F

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

Preview Lab → · Contrast checker → · Palette generator →

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