#AF5166#AF5166

#AF5166 is a mid, vivid red. Relative luminance 0.160; OKLCH L 55.8% C 0.124 H 8.0°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#AF5166
RGBrgb(175, 81, 102)
HSLhsl(347, 37%, 50%)
HSVhsv(347, 54%, 69%)
CMYKcmyk(0%, 53.7%, 41.7%, 31.4%)
CIE-LABlab(46.92, 40.46, 6.50)
CIE-LCHlch(46.92, 40.98, 9.13°)
OKLaboklab(55.82% 0.1229 0.0172)
OKLCHoklch(55.82% 0.124 8)
XYZxyz(23.0213, 15.9605, 14.4361)
Luminance0.1596 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5166 #51AF9A
analogous
#AF5195 #AF5166 #AF6B51
triadic
#AF5166 #66AF51 #5166AF
tetradic
#AF5166 #95AF51 #51AF9A #6B51AF
square
#AF5166 #95AF51 #51AF9A #6B51AF
split-complementary
#AF5166 #51AF6B #5195AF
monochromatic
#5C2A35 #853D4D #AF5166 #C27B8B #D6A5B0

Accessibility & contrast

On white

5.01
#AF5166 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#AF5166 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF5166
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5166#FFFFFF#000000##FFFFFF
##AF51661.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#636466
Deuteranopia (green-blind)
#7B7664
Tritanopia (blue-blind)
#BD4759
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af5166;
/* rgb */ color: rgb(175, 81, 102);
/* oklch */ color: oklch(55.8% 0.124 8.0);
Tailwind
colors: {
  custom: {
    50: '#ca8591',
    500: '#af5166',
    950: '#000000',
  },
}
SCSS
$custom: #af5166;
$custom-light: #ca8591;
$custom-dark: #000000;
JSON
{
  "hex": "#af5166",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 102
  },
  "hsl": {
    "h": 346.596,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55822,
    "c": 0.12408,
    "h": 8
  },
  "luminance": 0.15958
}

Semantic roles & 50–950 ramp

primary
#AF5166
secondary
#99C3BA
accent
#CDB35B
background
#FCF8F8
surface
#F9EFF0
border
#D2CACB
text
#140B0C
muted
#827C7D

Preview Lab

Preview with #AF5166

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

Preview Lab → · Contrast checker → · Palette generator →

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