#AF2862#AF2862

#AF2862 is a mid, vivid pink. Relative luminance 0.115; OKLCH L 51.0% C 0.176 H 359.9°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#AF2862
RGBrgb(175, 40, 98)
HSLhsl(334, 63%, 42%)
HSVhsv(334, 77%, 69%)
CMYKcmyk(0%, 77.1%, 44%, 31.4%)
CIE-LABlab(40.44, 57.29, -0.39)
CIE-LCHlch(40.44, 57.30, 359.61°)
OKLaboklab(50.96% 0.176 -0.0003)
OKLCHoklch(50.96% 0.176 359.9)
XYZxyz(20.6442, 11.5161, 12.6886)
Luminance0.1151 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2862 #28AF75
analogous
#AF28A6 #AF2862 #AF3128
triadic
#AF2862 #62AF28 #2862AF
tetradic
#AF2862 #A6AF28 #28AF75 #3128AF
square
#AF2862 #A6AF28 #28AF75 #3128AF
split-complementary
#AF2862 #28AF31 #28A6AF
monochromatic
#4B112A #7D1D46 #AF2862 #D44180 #DF73A1

Accessibility & contrast

On white

6.36
#AF2862 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#AF2862 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2862
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2862#FFFFFF#000000##FFFFFF
##AF28621.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#474F63
Deuteranopia (green-blind)
#6B695F
Tritanopia (blue-blind)
#BE0D42
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af2862;
/* rgb */ color: rgb(175, 40, 98);
/* oklch */ color: oklch(51.0% 0.176 359.9);
Tailwind
colors: {
  custom: {
    50: '#cc6f8e',
    500: '#af2862',
    950: '#000000',
  },
}
SCSS
$custom: #af2862;
$custom-light: #cc6f8e;
$custom-dark: #000000;
JSON
{
  "hex": "#af2862",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 98
  },
  "hsl": {
    "h": 334.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.5096,
    "c": 0.17599,
    "h": 359.9
  },
  "luminance": 0.11513
}

Semantic roles & 50–950 ramp

primary
#AF2862
secondary
#6DC6A0
accent
#E69F42
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080C
muted
#837B7D

Preview Lab

Preview with #AF2862

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

Preview Lab → · Contrast checker → · Palette generator →

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