#804271#804271

#804271 is a mid, moderate pink. Relative luminance 0.097; OKLCH L 47.3% C 0.106 H 337.0°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#804271
RGBrgb(128, 66, 113)
HSLhsl(315, 32%, 38%)
HSVhsv(315, 48%, 50%)
CMYKcmyk(0%, 48.4%, 11.7%, 49.8%)
CIE-LABlab(37.26, 33.42, -15.36)
CIE-LCHlch(37.26, 36.78, 335.32°)
OKLaboklab(47.27% 0.0972 -0.0413)
OKLCHoklch(47.27% 0.106 337)
XYZxyz(13.8310, 9.6788, 16.7593)
Luminance0.0968 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804271 #428051
analogous
#704280 #804271 #804252
triadic
#804271 #718042 #427180
tetradic
#804271 #807042 #428051 #425280
square
#804271 #807042 #428051 #425280
split-complementary
#804271 #528042 #428070
monochromatic
#2F182A #582D4D #804271 #A85795 #BD7FAE

Accessibility & contrast

On white

7.15
#804271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#804271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #804271
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804271#FFFFFF#000000##FFFFFF
##8042711.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435273
Deuteranopia (green-blind)
#545B6F
Tritanopia (blue-blind)
#864454
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #804271;
/* rgb */ color: rgb(128, 66, 113);
/* oklch */ color: oklch(47.3% 0.106 337.0);
Tailwind
colors: {
  custom: {
    50: '#a6789a',
    500: '#804271',
    950: '#000000',
  },
}
SCSS
$custom: #804271;
$custom-light: #a6789a;
$custom-dark: #000000;
JSON
{
  "hex": "#804271",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 314.516,
    "s": 31.959,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47265,
    "c": 0.10562,
    "h": 337
  },
  "luminance": 0.09678
}

Semantic roles & 50–950 ramp

primary
#804271
secondary
#76A882
accent
#C87960
background
#FAF7F9
surface
#F4EDF2
border
#CEC8CC
text
#10090E
muted
#7F7B7E

Preview Lab

Preview with #804271

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

Preview Lab → · Contrast checker → · Palette generator →

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