#AF236D#AF236D

#AF236D is a mid, vivid pink. Relative luminance 0.114; OKLCH L 51.0% C 0.185 H 354.1°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#AF236D
RGBrgb(175, 35, 109)
HSLhsl(328, 67%, 41%)
HSVhsv(328, 80%, 69%)
CMYKcmyk(0%, 80%, 37.7%, 31.4%)
CIE-LABlab(40.28, 59.87, -7.53)
CIE-LCHlch(40.28, 60.34, 352.83°)
OKLaboklab(50.97% 0.1841 -0.0191)
OKLCHoklch(50.97% 0.185 354.1)
XYZxyz(21.0420, 11.4228, 15.5618)
Luminance0.1142 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF236D #23AF65
analogous
#AB23AF #AF236D #AF2327
triadic
#AF236D #6DAF23 #236DAF
tetradic
#AF236D #AFAB23 #23AF65 #2327AF
square
#AF236D #AFAB23 #23AF65 #2327AF
split-complementary
#AF236D #27AF23 #23AFAB
monochromatic
#490F2D #7C194D #AF236D #D7388C #E16BAA

Accessibility & contrast

On white

6.39
#AF236D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#AF236D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF236D
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF236D#FFFFFF#000000##FFFFFF
##AF236D1.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#404F6F
Deuteranopia (green-blind)
#68686A
Tritanopia (blue-blind)
#BD0F45
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af236d;
/* rgb */ color: rgb(175, 35, 109);
/* oklch */ color: oklch(51.0% 0.185 354.1);
Tailwind
colors: {
  custom: {
    50: '#cc6e96',
    500: '#af236d',
    950: '#000000',
  },
}
SCSS
$custom: #af236d;
$custom-light: #cc6e96;
$custom-dark: #000000;
JSON
{
  "hex": "#af236d",
  "rgb": {
    "r": 175,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 328.286,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.50967,
    "c": 0.18506,
    "h": 354.1
  },
  "luminance": 0.1142
}

Semantic roles & 50–950 ramp

primary
#AF236D
secondary
#66C794
accent
#EA8F3E
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF236D

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

Preview Lab → · Contrast checker → · Palette generator →

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