#AF255E#AF255E

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

Color values

HEX#AF255E
RGBrgb(175, 37, 94)
HSLhsl(335, 65%, 42%)
HSVhsv(335, 79%, 69%)
CMYKcmyk(0%, 78.9%, 46.3%, 31.4%)
CIE-LABlab(40.00, 57.82, 1.50)
CIE-LCHlch(40.00, 57.84, 1.48°)
OKLaboklab(50.6% 0.1775 0.0045)
OKLCHoklch(50.6% 0.178 1.4)
XYZxyz(20.3628, 11.2480, 11.6863)
Luminance0.1124 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF255E #25AF76
analogous
#AF25A3 #AF255E #AF3125
triadic
#AF255E #5EAF25 #255EAF
tetradic
#AF255E #A3AF25 #25AF76 #3125AF
square
#AF255E #A3AF25 #25AF76 #3125AF
split-complementary
#AF255E #25AF31 #25A3AF
monochromatic
#4A1028 #7C1A43 #AF255E #D63C7B #E06E9D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF255E#FFFFFF#000000##FFFFFF
##AF255E1.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)
#464D5F
Deuteranopia (green-blind)
#6B685B
Tritanopia (blue-blind)
#BE003E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #af255e;
/* rgb */ color: rgb(175, 37, 94);
/* oklch */ color: oklch(50.6% 0.178 1.4);
Tailwind
colors: {
  custom: {
    50: '#cd6e8b',
    500: '#af255e',
    950: '#000000',
  },
}
SCSS
$custom: #af255e;
$custom-light: #cd6e8b;
$custom-dark: #000000;
JSON
{
  "hex": "#af255e",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 335.217,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.50596,
    "c": 0.1776,
    "h": 1.4
  },
  "luminance": 0.11245
}

Semantic roles & 50–950 ramp

primary
#AF255E
secondary
#69C7A0
accent
#E8A340
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080C
muted
#837B7D

Preview Lab

Preview with #AF255E

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

Preview Lab → · Contrast checker → · Palette generator →

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