#AF2258#AF2258

#AF2258 is a mid, vivid pink. Relative luminance 0.110; OKLCH L 50.2% C 0.179 H 4.0°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#AF2258
RGBrgb(175, 34, 88)
HSLhsl(337, 67%, 41%)
HSVhsv(337, 81%, 69%)
CMYKcmyk(0%, 80.6%, 49.7%, 31.4%)
CIE-LABlab(39.52, 58.15, 4.62)
CIE-LCHlch(39.52, 58.33, 4.54°)
OKLaboklab(50.19% 0.1782 0.0124)
OKLCHoklch(50.19% 0.179 4)
XYZxyz(20.0144, 10.9654, 10.2933)
Luminance0.1096 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2258 #22AF79
analogous
#AF229E #AF2258 #AF3222
triadic
#AF2258 #58AF22 #2258AF
tetradic
#AF2258 #9EAF22 #22AF79 #3222AF
square
#AF2258 #9EAF22 #22AF79 #3222AF
split-complementary
#AF2258 #22AF32 #229EAF
monochromatic
#490E24 #7C183E #AF2258 #D83674 #E26998

Accessibility & contrast

On white

6.58
#AF2258 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#AF2258 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2258
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2258#FFFFFF#000000##FFFFFF
##AF22581.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#474C59
Deuteranopia (green-blind)
#6C6755
Tritanopia (blue-blind)
#BF003A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #af2258;
/* rgb */ color: rgb(175, 34, 88);
/* oklch */ color: oklch(50.2% 0.179 4.0);
Tailwind
colors: {
  custom: {
    50: '#cd6d86',
    500: '#af2258',
    950: '#000000',
  },
}
SCSS
$custom: #af2258;
$custom-light: #cd6d86;
$custom-dark: #000000;
JSON
{
  "hex": "#af2258",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 88
  },
  "hsl": {
    "h": 337.021,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.50193,
    "c": 0.1786,
    "h": 4
  },
  "luminance": 0.10963
}

Semantic roles & 50–950 ramp

primary
#AF2258
secondary
#65C8A2
accent
#EAA83D
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #AF2258

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

Preview Lab → · Contrast checker → · Palette generator →

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