#AF5162#AF5162

#AF5162 is a mid, vivid red. Relative luminance 0.159; OKLCH L 55.7% C 0.123 H 10.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AF5162
RGBrgb(175, 81, 98)
HSLhsl(349, 37%, 50%)
HSVhsv(349, 54%, 69%)
CMYKcmyk(0%, 53.7%, 44%, 31.4%)
CIE-LABlab(46.82, 40.02, 8.79)
CIE-LCHlch(46.82, 40.97, 12.39°)
OKLaboklab(55.71% 0.1213 0.0229)
OKLCHoklch(55.71% 0.123 10.7)
XYZxyz(22.8277, 15.8831, 13.4165)
Luminance0.1588 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5162 #51AF9E
analogous
#AF5191 #AF5162 #AF6F51
triadic
#AF5162 #62AF51 #5162AF
tetradic
#AF5162 #91AF51 #51AF9E #6F51AF
square
#AF5162 #91AF51 #51AF9E #6F51AF
split-complementary
#AF5162 #51AF6F #5191AF
monochromatic
#5C2A33 #853D4A #AF5162 #C27B88 #D6A5AE

Accessibility & contrast

On white

5.03
#AF5162 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AF5162 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF5162
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5162#FFFFFF#000000##FFFFFF
##AF51621.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#646362
Deuteranopia (green-blind)
#7C7660
Tritanopia (blue-blind)
#BD4657
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af5162;
/* rgb */ color: rgb(175, 81, 98);
/* oklch */ color: oklch(55.7% 0.123 10.7);
Tailwind
colors: {
  custom: {
    50: '#cb858e',
    500: '#af5162',
    950: '#000000',
  },
}
SCSS
$custom: #af5162;
$custom-light: #cb858e;
$custom-dark: #000000;
JSON
{
  "hex": "#af5162",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 98
  },
  "hsl": {
    "h": 349.149,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55711,
    "c": 0.12346,
    "h": 10.7
  },
  "luminance": 0.15881
}

Semantic roles & 50–950 ramp

primary
#AF5162
secondary
#99C3BB
accent
#CDB85B
background
#FCF8F8
surface
#F9EFF0
border
#D2CACB
text
#140B0C
muted
#827C7D

Preview Lab

Preview with #AF5162

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

Preview Lab → · Contrast checker → · Palette generator →

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