#842777#842777

#842777 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.6% C 0.157 H 334.0°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#842777
RGBrgb(132, 39, 119)
HSLhsl(308, 54%, 34%)
HSVhsv(308, 70%, 52%)
CMYKcmyk(0%, 70.5%, 9.8%, 48.2%)
CIE-LABlab(33.33, 48.71, -25.16)
CIE-LCHlch(33.33, 54.83, 332.68°)
OKLaboklab(44.59% 0.1412 -0.0688)
OKLCHoklch(44.59% 0.157 334)
XYZxyz(13.5711, 7.6896, 18.2187)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842777 #278434
analogous
#622784 #842777 #842748
triadic
#842777 #778427 #277784
tetradic
#842777 #846227 #278434 #274884
square
#842777 #846227 #278434 #274884
split-complementary
#842777 #488427 #278462
monochromatic
#260B22 #55194C #842777 #B335A2 #CE58BD

Accessibility & contrast

On white

8.28
#842777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#842777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842777
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842777#FFFFFF#000000##FFFFFF
##8427771.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254679
Deuteranopia (green-blind)
#455375
Tritanopia (blue-blind)
#8A2F4B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #842777;
/* rgb */ color: rgb(132, 39, 119);
/* oklch */ color: oklch(44.6% 0.157 334.0);
Tailwind
colors: {
  custom: {
    50: '#ab6a9e',
    500: '#842777',
    950: '#000000',
  },
}
SCSS
$custom: #842777;
$custom-light: #ab6a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#842777",
  "rgb": {
    "r": 132,
    "g": 39,
    "b": 119
  },
  "hsl": {
    "h": 308.387,
    "s": 54.386,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44587,
    "c": 0.15706,
    "h": 334
  },
  "luminance": 0.07688
}

Semantic roles & 50–950 ramp

primary
#842777
secondary
#54B261
accent
#DE5F4A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842777

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

Preview Lab → · Contrast checker → · Palette generator →

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