#812277#812277

#812277 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.162 H 332.6°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#812277
RGBrgb(129, 34, 119)
HSLhsl(306, 58%, 32%)
HSVhsv(306, 74%, 51%)
CMYKcmyk(0%, 73.6%, 7.8%, 49.4%)
CIE-LABlab(32.13, 49.85, -27.07)
CIE-LCHlch(32.13, 56.73, 331.49°)
OKLaboklab(43.62% 0.1435 -0.0743)
OKLCHoklch(43.62% 0.162 332.6)
XYZxyz(12.9551, 7.1442, 18.1458)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812277 #22812C
analogous
#5C2281 #812277 #812248
triadic
#812277 #778122 #227781
tetradic
#812277 #815C22 #22812C #224881
square
#812277 #815C22 #22812C #224881
split-complementary
#812277 #488122 #22815C
monochromatic
#20081E #51154A #812277 #B12FA4 #D04DC2

Accessibility & contrast

On white

8.65
#812277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#812277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812277
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812277#FFFFFF#000000##FFFFFF
##8122771.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4379
Deuteranopia (green-blind)
#415075
Tritanopia (blue-blind)
#872C4A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #812277;
/* rgb */ color: rgb(129, 34, 119);
/* oklch */ color: oklch(43.6% 0.162 332.6);
Tailwind
colors: {
  custom: {
    50: '#a9679e',
    500: '#812277',
    950: '#000000',
  },
}
SCSS
$custom: #812277;
$custom-light: #a9679e;
$custom-dark: #000000;
JSON
{
  "hex": "#812277",
  "rgb": {
    "r": 129,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 306.316,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43623,
    "c": 0.16156,
    "h": 332.6
  },
  "luminance": 0.07143
}

Semantic roles & 50–950 ramp

primary
#812277
secondary
#4BB356
accent
#E15746
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #812277

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

Preview Lab → · Contrast checker → · Palette generator →

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