#AF245F#AF245F

#AF245F is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.6% C 0.179 H 0.8°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#AF245F
RGBrgb(175, 36, 95)
HSLhsl(335, 66%, 41%)
HSVhsv(335, 79%, 69%)
CMYKcmyk(0%, 79.4%, 45.7%, 31.4%)
CIE-LABlab(39.92, 58.21, 0.76)
CIE-LCHlch(39.92, 58.21, 0.75°)
OKLaboklab(50.55% 0.1788 0.0026)
OKLCHoklch(50.55% 0.179 0.8)
XYZxyz(20.3773, 11.2047, 11.9139)
Luminance0.1120 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF245F #24AF74
analogous
#AF24A5 #AF245F #AF2E24
triadic
#AF245F #5FAF24 #245FAF
tetradic
#AF245F #A5AF24 #24AF74 #2E24AF
square
#AF245F #A5AF24 #24AF74 #2E24AF
split-complementary
#AF245F #24AF2E #24A5AF
monochromatic
#490F28 #7C1A43 #AF245F #D63A7C #E16D9E

Accessibility & contrast

On white

6.48
#AF245F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#AF245F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF245F
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF245F#FFFFFF#000000##FFFFFF
##AF245F1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#464D60
Deuteranopia (green-blind)
#6B685C
Tritanopia (blue-blind)
#BE003F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #af245f;
/* rgb */ color: rgb(175, 36, 95);
/* oklch */ color: oklch(50.6% 0.179 0.8);
Tailwind
colors: {
  custom: {
    50: '#cd6e8c',
    500: '#af245f',
    950: '#000000',
  },
}
SCSS
$custom: #af245f;
$custom-light: #cd6e8c;
$custom-dark: #000000;
JSON
{
  "hex": "#af245f",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 95
  },
  "hsl": {
    "h": 334.532,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50553,
    "c": 0.17883,
    "h": 0.8
  },
  "luminance": 0.11202
}

Semantic roles & 50–950 ramp

primary
#AF245F
secondary
#68C79F
accent
#E9A13F
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080C
muted
#837B7D

Preview Lab

Preview with #AF245F

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

Preview Lab → · Contrast checker → · Palette generator →

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