#AF255F#AF255F

#AF255F is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.6% C 0.178 H 1.0°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#AF255F
RGBrgb(175, 37, 95)
HSLhsl(335, 65%, 42%)
HSVhsv(335, 79%, 69%)
CMYKcmyk(0%, 78.9%, 45.7%, 31.4%)
CIE-LABlab(40.03, 57.92, 0.91)
CIE-LCHlch(40.03, 57.92, 0.90°)
OKLaboklab(50.63% 0.1779 0.003)
OKLCHoklch(50.63% 0.178 1)
XYZxyz(20.4080, 11.2661, 11.9242)
Luminance0.1126 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF255F #25AF75
analogous
#AF25A4 #AF255F #AF3025
triadic
#AF255F #5FAF25 #255FAF
tetradic
#AF255F #A4AF25 #25AF75 #3025AF
square
#AF255F #A4AF25 #25AF75 #3025AF
split-complementary
#AF255F #25AF30 #25A4AF
monochromatic
#4A1028 #7C1A44 #AF255F #D63C7C #E06E9E

Accessibility & contrast

On white

6.46
#AF255F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#AF255F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF255F
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF255F#FFFFFF#000000##FFFFFF
##AF255F1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#464D60
Deuteranopia (green-blind)
#6B685C
Tritanopia (blue-blind)
#BE023F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #af255f;
/* rgb */ color: rgb(175, 37, 95);
/* oklch */ color: oklch(50.6% 0.178 1.0);
Tailwind
colors: {
  custom: {
    50: '#cd6e8c',
    500: '#af255f',
    950: '#000000',
  },
}
SCSS
$custom: #af255f;
$custom-light: #cd6e8c;
$custom-dark: #000000;
JSON
{
  "hex": "#af255f",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 334.783,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.50628,
    "c": 0.1779,
    "h": 1
  },
  "luminance": 0.11263
}

Semantic roles & 50–950 ramp

primary
#AF255F
secondary
#69C79F
accent
#E8A140
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080C
muted
#837B7D

Preview Lab

Preview with #AF255F

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

Preview Lab → · Contrast checker → · Palette generator →

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