#AF276E#AF276E

#AF276E is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.3% C 0.182 H 354.0°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#AF276E
RGBrgb(175, 39, 110)
HSLhsl(329, 64%, 42%)
HSVhsv(329, 78%, 69%)
CMYKcmyk(0%, 77.7%, 37.1%, 31.4%)
CIE-LABlab(40.72, 58.82, -7.49)
CIE-LCHlch(40.72, 59.30, 352.74°)
OKLaboklab(51.3% 0.1807 -0.0191)
OKLCHoklch(51.3% 0.182 354)
XYZxyz(21.2206, 11.6934, 15.8884)
Luminance0.1169 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF276E #27AF68
analogous
#AC27AF #AF276E #AF272A
triadic
#AF276E #6EAF27 #276EAF
tetradic
#AF276E #AFAC27 #27AF68 #272AAF
square
#AF276E #AFAC27 #27AF68 #272AAF
split-complementary
#AF276E #2AAF27 #27AFAC
monochromatic
#4B112F #7D1C4F #AF276E #D43F8D #DF71AB

Accessibility & contrast

On white

6.29
#AF276E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#AF276E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF276E
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF276E#FFFFFF#000000##FFFFFF
##AF276E1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425070
Deuteranopia (green-blind)
#68696B
Tritanopia (blue-blind)
#BD1647
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af276e;
/* rgb */ color: rgb(175, 39, 110);
/* oklch */ color: oklch(51.3% 0.182 354.0);
Tailwind
colors: {
  custom: {
    50: '#cc6f97',
    500: '#af276e',
    950: '#000000',
  },
}
SCSS
$custom: #af276e;
$custom-light: #cc6f97;
$custom-dark: #000000;
JSON
{
  "hex": "#af276e",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 110
  },
  "hsl": {
    "h": 328.676,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51301,
    "c": 0.18168,
    "h": 354
  },
  "luminance": 0.11691
}

Semantic roles & 50–950 ramp

primary
#AF276E
secondary
#6BC697
accent
#E79041
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF276E

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

Preview Lab → · Contrast checker → · Palette generator →

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