#AF2B5E#AF2B5E

#AF2B5E is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.1% C 0.172 H 2.3°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#AF2B5E
RGBrgb(175, 43, 94)
HSLhsl(337, 61%, 43%)
HSVhsv(337, 75%, 69%)
CMYKcmyk(0%, 75.4%, 46.3%, 31.4%)
CIE-LABlab(40.66, 55.95, 2.46)
CIE-LCHlch(40.66, 56.01, 2.52°)
OKLaboklab(51.08% 0.1715 0.0069)
OKLCHoklch(51.08% 0.172 2.3)
XYZxyz(20.5651, 11.6526, 11.7538)
Luminance0.1165 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B5E #2BAF7C
analogous
#AF2BA0 #AF2B5E #AF3A2B
triadic
#AF2B5E #5EAF2B #2B5EAF
tetradic
#AF2B5E #A0AF2B #2BAF7C #3A2BAF
square
#AF2B5E #A0AF2B #2BAF7C #3A2BAF
split-complementary
#AF2B5E #2BAF3A #2BA0AF
monochromatic
#4D1329 #7E1F44 #AF2B5E #D1467C #DE779F

Accessibility & contrast

On white

6.31
#AF2B5E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#AF2B5E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2B5E
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B5E#FFFFFF#000000##FFFFFF
##AF2B5E1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4F5F
Deuteranopia (green-blind)
#6D695B
Tritanopia (blue-blind)
#BE1141
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2b5e;
/* rgb */ color: rgb(175, 43, 94);
/* oklch */ color: oklch(51.1% 0.172 2.3);
Tailwind
colors: {
  custom: {
    50: '#cc708b',
    500: '#af2b5e',
    950: '#000000',
  },
}
SCSS
$custom: #af2b5e;
$custom-light: #cc708b;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b5e",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 94
  },
  "hsl": {
    "h": 336.818,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.51084,
    "c": 0.17166,
    "h": 2.3
  },
  "luminance": 0.1165
}

Semantic roles & 50–950 ramp

primary
#AF2B5E
secondary
#70C5A5
accent
#E4A644
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080C
muted
#837B7D

Preview Lab

Preview with #AF2B5E

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

Preview Lab → · Contrast checker → · Palette generator →

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