#811271#811271

#811271 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.173 H 335.3°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#811271
RGBrgb(129, 18, 113)
HSLhsl(309, 76%, 29%)
HSVhsv(309, 86%, 51%)
CMYKcmyk(0%, 86%, 12.4%, 49.4%)
CIE-LABlab(30.14, 53.68, -26.40)
CIE-LCHlch(30.14, 59.83, 333.81°)
OKLaboklab(42.09% 0.1572 -0.0723)
OKLCHoklch(42.09% 0.173 335.3)
XYZxyz(12.2504, 6.2932, 16.1891)
Luminance0.0629 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#811271 #128122
analogous
#5A1281 #811271 #81123A
triadic
#811271 #718112 #127181
tetradic
#811271 #815A12 #128122 #123A81
square
#811271 #815A12 #128122 #123A81
split-complementary
#811271 #3A8112 #12815A
monochromatic
#1B0418 #4B0B42 #811271 #B719A0 #E22CC7

Accessibility & contrast

On white

9.30
#811271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#811271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #811271
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##811271#FFFFFF#000000##FFFFFF
##8112711.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123D73
Deuteranopia (green-blind)
#3E4D6F
Tritanopia (blue-blind)
#881E43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #811271;
/* rgb */ color: rgb(129, 18, 113);
/* oklch */ color: oklch(42.1% 0.173 335.3);
Tailwind
colors: {
  custom: {
    50: '#a9619a',
    500: '#811271',
    950: '#000000',
  },
}
SCSS
$custom: #811271;
$custom-light: #a9619a;
$custom-dark: #000000;
JSON
{
  "hex": "#811271",
  "rgb": {
    "r": 129,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 308.649,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42088,
    "c": 0.17301,
    "h": 335.3
  },
  "luminance": 0.06292
}

Semantic roles & 50–950 ramp

primary
#811271
secondary
#38B74A
accent
#F25136
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #811271

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

Preview Lab → · Contrast checker → · Palette generator →

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