#812271#812271

#812271 is a dark, vivid pink. Relative luminance 0.070; OKLCH L 43.3% C 0.157 H 335.6°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#812271
RGBrgb(129, 34, 113)
HSLhsl(310, 58%, 32%)
HSVhsv(310, 74%, 51%)
CMYKcmyk(0%, 73.6%, 12.4%, 49.4%)
CIE-LABlab(31.82, 48.88, -23.77)
CIE-LCHlch(31.82, 54.35, 334.07°)
OKLaboklab(43.29% 0.1429 -0.0648)
OKLCHoklch(43.29% 0.157 335.6)
XYZxyz(12.6061, 7.0045, 16.3077)
Luminance0.0700 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812271 #228132
analogous
#622281 #812271 #812242
triadic
#812271 #718122 #227181
tetradic
#812271 #816222 #228132 #224281
square
#812271 #816222 #228132 #224281
split-complementary
#812271 #428122 #228162
monochromatic
#20081C #511547 #812271 #B12F9B #D04DBA

Accessibility & contrast

On white

8.75
#812271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#812271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812271
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812271#FFFFFF#000000##FFFFFF
##8122711.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234273
Deuteranopia (green-blind)
#43506F
Tritanopia (blue-blind)
#882947
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #812271;
/* rgb */ color: rgb(129, 34, 113);
/* oklch */ color: oklch(43.3% 0.157 335.6);
Tailwind
colors: {
  custom: {
    50: '#a9679a',
    500: '#812271',
    950: '#000000',
  },
}
SCSS
$custom: #812271;
$custom-light: #a9679a;
$custom-dark: #000000;
JSON
{
  "hex": "#812271",
  "rgb": {
    "r": 129,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 310.105,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43293,
    "c": 0.15694,
    "h": 335.6
  },
  "luminance": 0.07003
}

Semantic roles & 50–950 ramp

primary
#812271
secondary
#4BB35D
accent
#E16046
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #812271

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

Preview Lab → · Contrast checker → · Palette generator →

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