#842277#842277

#842277 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.1% C 0.163 H 333.9°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#842277
RGBrgb(132, 34, 119)
HSLhsl(308, 59%, 33%)
HSVhsv(308, 74%, 52%)
CMYKcmyk(0%, 74.2%, 9.8%, 48.2%)
CIE-LABlab(32.66, 50.59, -26.20)
CIE-LCHlch(32.66, 56.98, 332.62°)
OKLaboklab(44.11% 0.1467 -0.0717)
OKLCHoklch(44.11% 0.163 333.9)
XYZxyz(13.4176, 7.3826, 18.1675)
Luminance0.0738 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842277 #22842F
analogous
#602284 #842277 #842246
triadic
#842277 #778422 #227784
tetradic
#842277 #846022 #22842F #224684
square
#842277 #846022 #22842F #224684
split-complementary
#842277 #468422 #228460
monochromatic
#23091F #53154B #842277 #B52FA3 #D24FC0

Accessibility & contrast

On white

8.48
#842277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#842277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842277
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842277#FFFFFF#000000##FFFFFF
##8422771.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204479
Deuteranopia (green-blind)
#435275
Tritanopia (blue-blind)
#8A2B4A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #842277;
/* rgb */ color: rgb(132, 34, 119);
/* oklch */ color: oklch(44.1% 0.163 333.9);
Tailwind
colors: {
  custom: {
    50: '#ab679e',
    500: '#842277',
    950: '#000000',
  },
}
SCSS
$custom: #842277;
$custom-light: #ab679e;
$custom-dark: #000000;
JSON
{
  "hex": "#842277",
  "rgb": {
    "r": 132,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 307.959,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44106,
    "c": 0.16331,
    "h": 333.9
  },
  "luminance": 0.07381
}

Semantic roles & 50–950 ramp

primary
#842277
secondary
#4DB55B
accent
#E25A46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842277

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

Preview Lab → · Contrast checker → · Palette generator →

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