#AF2B8D#AF2B8D

#AF2B8D is a mid, vivid pink. Relative luminance 0.128; OKLCH L 52.9% C 0.195 H 340.5°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#AF2B8D
RGBrgb(175, 43, 141)
HSLhsl(315, 61%, 43%)
HSVhsv(315, 75%, 69%)
CMYKcmyk(0%, 75.4%, 19.4%, 31.4%)
CIE-LABlab(42.41, 61.39, -24.05)
CIE-LCHlch(42.41, 65.93, 338.61°)
OKLaboklab(52.94% 0.1835 -0.0649)
OKLCHoklch(52.94% 0.195 340.5)
XYZxyz(23.3515, 12.7671, 26.4286)
Luminance0.1277 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B8D #2BAF4D
analogous
#8F2BAF #AF2B8D #AF2B4B
triadic
#AF2B8D #8DAF2B #2B8DAF
tetradic
#AF2B8D #AF8F2B #2BAF4D #2B4BAF
square
#AF2B8D #AF8F2B #2BAF4D #2B4BAF
split-complementary
#AF2B8D #4BAF2B #2BAF8F
monochromatic
#4D133E #7E1F65 #AF2B8D #D146AD #DE77C3

Accessibility & contrast

On white

5.91
#AF2B8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#AF2B8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2B8D
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B8D#FFFFFF#000000##FFFFFF
##AF2B8D1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355790
Deuteranopia (green-blind)
#606C8A
Tritanopia (blue-blind)
#BA2F59
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af2b8d;
/* rgb */ color: rgb(175, 43, 141);
/* oklch */ color: oklch(52.9% 0.195 340.5);
Tailwind
colors: {
  custom: {
    50: '#cb72ae',
    500: '#af2b8d',
    950: '#000000',
  },
}
SCSS
$custom: #af2b8d;
$custom-light: #cb72ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b8d",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 315.455,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.52935,
    "c": 0.19463,
    "h": 340.5
  },
  "luminance": 0.12765
}

Semantic roles & 50–950 ramp

primary
#AF2B8D
secondary
#70C586
accent
#E46D44
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF2B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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