#AF2958#AF2958

#AF2958 is a mid, vivid pink. Relative luminance 0.114; OKLCH L 50.7% C 0.172 H 5.0°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#AF2958
RGBrgb(175, 41, 88)
HSLhsl(339, 62%, 42%)
HSVhsv(339, 77%, 69%)
CMYKcmyk(0%, 76.6%, 49.7%, 31.4%)
CIE-LABlab(40.26, 56.07, 5.67)
CIE-LCHlch(40.26, 56.35, 5.78°)
OKLaboklab(50.73% 0.1715 0.015)
OKLCHoklch(50.73% 0.172 5)
XYZxyz(20.2353, 11.4072, 10.3669)
Luminance0.1140 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2958 #29AF80
analogous
#AF299B #AF2958 #AF3D29
triadic
#AF2958 #58AF29 #2958AF
tetradic
#AF2958 #9BAF29 #29AF80 #3D29AF
square
#AF2958 #9BAF29 #29AF80 #3D29AF
split-complementary
#AF2958 #29AF3D #299BAF
monochromatic
#4C1226 #7D1D3F #AF2958 #D34275 #DE7499

Accessibility & contrast

On white

6.40
#AF2958 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#AF2958 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2958
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2958#FFFFFF#000000##FFFFFF
##AF29581.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4E59
Deuteranopia (green-blind)
#6D6855
Tritanopia (blue-blind)
#BF053D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af2958;
/* rgb */ color: rgb(175, 41, 88);
/* oklch */ color: oklch(50.7% 0.172 5.0);
Tailwind
colors: {
  custom: {
    50: '#cd6f86',
    500: '#af2958',
    950: '#000000',
  },
}
SCSS
$custom: #af2958;
$custom-light: #cd6f86;
$custom-dark: #000000;
JSON
{
  "hex": "#af2958",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 88
  },
  "hsl": {
    "h": 338.955,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.50734,
    "c": 0.1721,
    "h": 5
  },
  "luminance": 0.11404
}

Semantic roles & 50–950 ramp

primary
#AF2958
secondary
#6EC6A7
accent
#E5AC43
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#15080B
muted
#837B7C

Preview Lab

Preview with #AF2958

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

Preview Lab → · Contrast checker → · Palette generator →

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