#AF2B8B#AF2B8B

#AF2B8B is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.8% C 0.193 H 341.4°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#AF2B8B
RGBrgb(175, 43, 139)
HSLhsl(316, 61%, 43%)
HSVhsv(316, 75%, 69%)
CMYKcmyk(0%, 75.4%, 20.6%, 31.4%)
CIE-LABlab(42.32, 61.12, -22.97)
CIE-LCHlch(42.32, 65.29, 339.40°)
OKLaboklab(52.84% 0.1832 -0.0618)
OKLCHoklch(52.84% 0.193 341.4)
XYZxyz(23.2040, 12.7082, 25.6520)
Luminance0.1271 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B8B #2BAF4F
analogous
#912BAF #AF2B8B #AF2B49
triadic
#AF2B8B #8BAF2B #2B8BAF
tetradic
#AF2B8B #AF912B #2BAF4F #2B49AF
square
#AF2B8B #AF912B #2BAF4F #2B49AF
split-complementary
#AF2B8B #49AF2B #2BAF91
monochromatic
#4D133D #7E1F64 #AF2B8B #D146AB #DE77C2

Accessibility & contrast

On white

5.93
#AF2B8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AF2B8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2B8B
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B8B#FFFFFF#000000##FFFFFF
##AF2B8B1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37568E
Deuteranopia (green-blind)
#616C88
Tritanopia (blue-blind)
#BA2E58
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2b8b;
/* rgb */ color: rgb(175, 43, 139);
/* oklch */ color: oklch(52.8% 0.193 341.4);
Tailwind
colors: {
  custom: {
    50: '#cb72ad',
    500: '#af2b8b',
    950: '#000000',
  },
}
SCSS
$custom: #af2b8b;
$custom-light: #cb72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b8b",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 316.364,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.5284,
    "c": 0.19335,
    "h": 341.4
  },
  "luminance": 0.12706
}

Semantic roles & 50–950 ramp

primary
#AF2B8B
secondary
#70C588
accent
#E47044
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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