#AF274F#AF274F

#AF274F is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.3% C 0.172 H 9.1°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#AF274F
RGBrgb(175, 39, 79)
HSLhsl(342, 64%, 42%)
HSVhsv(342, 78%, 69%)
CMYKcmyk(0%, 77.7%, 54.9%, 31.4%)
CIE-LABlab(39.80, 55.96, 10.73)
CIE-LCHlch(39.80, 56.98, 10.86°)
OKLaboklab(50.32% 0.1701 0.0273)
OKLCHoklch(50.32% 0.172 9.1)
XYZxyz(19.8179, 11.1323, 8.5008)
Luminance0.1113 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF274F #27AF87
analogous
#AF2793 #AF274F #AF4327
triadic
#AF274F #4FAF27 #274FAF
tetradic
#AF274F #93AF27 #27AF87 #4327AF
square
#AF274F #93AF27 #27AF87 #4327AF
split-complementary
#AF274F #27AF43 #2793AF
monochromatic
#4B1122 #7D1C38 #AF274F #D43F6B #DF7191

Accessibility & contrast

On white

6.51
#AF274F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#AF274F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF274F
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF274F#FFFFFF#000000##FFFFFF
##AF274F1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4C50
Deuteranopia (green-blind)
#6E684C
Tritanopia (blue-blind)
#BF0038
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #af274f;
/* rgb */ color: rgb(175, 39, 79);
/* oklch */ color: oklch(50.3% 0.172 9.1);
Tailwind
colors: {
  custom: {
    50: '#cd6e80',
    500: '#af274f',
    950: '#000000',
  },
}
SCSS
$custom: #af274f;
$custom-light: #cd6e80;
$custom-dark: #000000;
JSON
{
  "hex": "#af274f",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 79
  },
  "hsl": {
    "h": 342.353,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.50322,
    "c": 0.17225,
    "h": 9.1
  },
  "luminance": 0.1113
}

Semantic roles & 50–950 ramp

primary
#AF274F
secondary
#6BC6AC
accent
#E7B641
background
#FDF7F7
surface
#FAEDEE
border
#D3C8C9
text
#15080A
muted
#837B7C

Preview Lab

Preview with #AF274F

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

Preview Lab → · Contrast checker → · Palette generator →

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