#AF278E#AF278E

#AF278E is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.7% C 0.199 H 340.0°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#AF278E
RGBrgb(175, 39, 142)
HSLhsl(315, 64%, 42%)
HSVhsv(315, 78%, 69%)
CMYKcmyk(0%, 77.7%, 18.9%, 31.4%)
CIE-LABlab(42.03, 62.74, -25.25)
CIE-LCHlch(42.03, 67.63, 338.08°)
OKLaboklab(52.68% 0.1873 -0.0682)
OKLCHoklch(52.68% 0.199 340)
XYZxyz(23.2879, 12.5203, 26.7762)
Luminance0.1252 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF278E #27AF48
analogous
#8C27AF #AF278E #AF274A
triadic
#AF278E #8EAF27 #278EAF
tetradic
#AF278E #AF8C27 #27AF48 #274AAF
square
#AF278E #AF8C27 #27AF48 #274AAF
split-complementary
#AF278E #4AAF27 #27AF8C
monochromatic
#4B113D #7D1C65 #AF278E #D43FB0 #DF71C5

Accessibility & contrast

On white

5.99
#AF278E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AF278E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF278E
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF278E#FFFFFF#000000##FFFFFF
##AF278E1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315591
Deuteranopia (green-blind)
#5F6B8B
Tritanopia (blue-blind)
#BA2C58
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af278e;
/* rgb */ color: rgb(175, 39, 142);
/* oklch */ color: oklch(52.7% 0.199 340.0);
Tailwind
colors: {
  custom: {
    50: '#cb70af',
    500: '#af278e',
    950: '#000000',
  },
}
SCSS
$custom: #af278e;
$custom-light: #cb70af;
$custom-dark: #000000;
JSON
{
  "hex": "#af278e",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 314.559,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52676,
    "c": 0.19936,
    "h": 340
  },
  "luminance": 0.12518
}

Semantic roles & 50–950 ramp

primary
#AF278E
secondary
#6BC682
accent
#E76941
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF278E

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

Preview Lab → · Contrast checker → · Palette generator →

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