#801271#801271

#801271 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.172 H 334.9°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#801271
RGBrgb(128, 18, 113)
HSLhsl(308, 75%, 29%)
HSVhsv(308, 86%, 50%)
CMYKcmyk(0%, 85.9%, 11.7%, 49.8%)
CIE-LABlab(29.95, 53.47, -26.72)
CIE-LCHlch(29.95, 59.77, 333.45°)
OKLaboklab(41.92% 0.1562 -0.0732)
OKLCHoklch(41.92% 0.172 334.9)
XYZxyz(12.0992, 6.2152, 16.1820)
Luminance0.0621 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#801271 #128021
analogous
#581280 #801271 #80123A
triadic
#801271 #718012 #127180
tetradic
#801271 #805812 #128021 #123A80
square
#801271 #805812 #128021 #123A80
split-complementary
#801271 #3A8012 #128058
monochromatic
#1B0418 #4A0A42 #801271 #B61AA0 #E12BC8

Accessibility & contrast

On white

9.36
#801271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#801271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #801271
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##801271#FFFFFF#000000##FFFFFF
##8012711.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113C73
Deuteranopia (green-blind)
#3D4C6F
Tritanopia (blue-blind)
#871E43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #801271;
/* rgb */ color: rgb(128, 18, 113);
/* oklch */ color: oklch(41.9% 0.172 334.9);
Tailwind
colors: {
  custom: {
    50: '#a9619a',
    500: '#801271',
    950: '#000000',
  },
}
SCSS
$custom: #801271;
$custom-light: #a9619a;
$custom-dark: #000000;
JSON
{
  "hex": "#801271",
  "rgb": {
    "r": 128,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 308.182,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41916,
    "c": 0.17249,
    "h": 334.9
  },
  "luminance": 0.06214
}

Semantic roles & 50–950 ramp

primary
#801271
secondary
#38B649
accent
#F25036
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #801271

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

Preview Lab → · Contrast checker → · Palette generator →

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