#AF237E#AF237E

#AF237E is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.7% C 0.194 H 346.4°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#AF237E
RGBrgb(175, 35, 126)
HSLhsl(321, 67%, 41%)
HSVhsv(321, 80%, 69%)
CMYKcmyk(0%, 80%, 28%, 31.4%)
CIE-LABlab(40.94, 61.80, -17.12)
CIE-LCHlch(40.94, 64.13, 344.51°)
OKLaboklab(51.65% 0.1882 -0.0454)
OKLCHoklch(51.65% 0.194 346.4)
XYZxyz(22.0472, 11.8249, 20.8560)
Luminance0.1182 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF237E #23AF54
analogous
#9A23AF #AF237E #AF2338
triadic
#AF237E #7EAF23 #237EAF
tetradic
#AF237E #AF9A23 #23AF54 #2338AF
square
#AF237E #AF9A23 #23AF54 #2338AF
split-complementary
#AF237E #38AF23 #23AF9A
monochromatic
#490F35 #7C1959 #AF237E #D7389F #E16BB8

Accessibility & contrast

On white

6.24
#AF237E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#AF237E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF237E
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF237E#FFFFFF#000000##FFFFFF
##AF237E1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395180
Deuteranopia (green-blind)
#63697B
Tritanopia (blue-blind)
#BB1E4E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af237e;
/* rgb */ color: rgb(175, 35, 126);
/* oklch */ color: oklch(51.7% 0.194 346.4);
Tailwind
colors: {
  custom: {
    50: '#cb6ea3',
    500: '#af237e',
    950: '#000000',
  },
}
SCSS
$custom: #af237e;
$custom-light: #cb6ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#af237e",
  "rgb": {
    "r": 175,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 321,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51655,
    "c": 0.19355,
    "h": 346.4
  },
  "luminance": 0.11822
}

Semantic roles & 50–950 ramp

primary
#AF237E
secondary
#66C788
accent
#EA7A3E
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14080F
muted
#837B7F

Preview Lab

Preview with #AF237E

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

Preview Lab → · Contrast checker → · Palette generator →

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