#AF245E#AF245E

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

Color values

HEX#AF245E
RGBrgb(175, 36, 94)
HSLhsl(335, 66%, 41%)
HSVhsv(335, 79%, 69%)
CMYKcmyk(0%, 79.4%, 46.3%, 31.4%)
CIE-LABlab(39.89, 58.11, 1.35)
CIE-LCHlch(39.89, 58.13, 1.33°)
OKLaboklab(50.52% 0.1785 0.0041)
OKLCHoklch(50.52% 0.179 1.3)
XYZxyz(20.3321, 11.1866, 11.6761)
Luminance0.1118 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF245E #24AF75
analogous
#AF24A4 #AF245E #AF3024
triadic
#AF245E #5EAF24 #245EAF
tetradic
#AF245E #A4AF24 #24AF75 #3024AF
square
#AF245E #A4AF24 #24AF75 #3024AF
split-complementary
#AF245E #24AF30 #24A4AF
monochromatic
#490F27 #7C1A43 #AF245E #D63A7B #E16D9D

Accessibility & contrast

On white

6.49
#AF245E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF245E
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF245E#FFFFFF#000000##FFFFFF
##AF245E1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#464D5F
Deuteranopia (green-blind)
#6B685B
Tritanopia (blue-blind)
#BE003E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #af245e;
/* rgb */ color: rgb(175, 36, 94);
/* oklch */ color: oklch(50.5% 0.179 1.3);
Tailwind
colors: {
  custom: {
    50: '#cd6e8b',
    500: '#af245e',
    950: '#000000',
  },
}
SCSS
$custom: #af245e;
$custom-light: #cd6e8b;
$custom-dark: #000000;
JSON
{
  "hex": "#af245e",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 94
  },
  "hsl": {
    "h": 334.964,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50521,
    "c": 0.17852,
    "h": 1.3
  },
  "luminance": 0.11184
}

Semantic roles & 50–950 ramp

primary
#AF245E
secondary
#68C79F
accent
#E9A23F
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#15080C
muted
#837B7D

Preview Lab

Preview with #AF245E

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

Preview Lab → · Contrast checker → · Palette generator →

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