#842799#842799

#842799 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.7% C 0.186 H 319.5°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#842799
RGBrgb(132, 39, 153)
HSLhsl(289, 59%, 38%)
HSVhsv(289, 75%, 60%)
CMYKcmyk(13.7%, 74.5%, 0%, 40%)
CIE-LABlab(35.32, 54.83, -43.04)
CIE-LCHlch(35.32, 69.71, 321.87°)
OKLaboklab(46.65% 0.1413 -0.1207)
OKLCHoklch(46.65% 0.186 319.5)
XYZxyz(15.9903, 8.6573, 30.9596)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842799 #3C9927
analogous
#4B2799 #842799 #992775
triadic
#842799 #998427 #279984
tetradic
#842799 #994B27 #3C9927 #277599
square
#842799 #994B27 #3C9927 #277599
split-complementary
#842799 #759927 #27994B
monochromatic
#300E37 #5A1B68 #842799 #AE33CA #C263D7

Accessibility & contrast

On white

7.69
#842799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#842799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842799
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842799#FFFFFF#000000##FFFFFF
##8427991.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#305696
Tritanopia (blue-blind)
#843E5E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #842799;
/* rgb */ color: rgb(132, 39, 153);
/* oklch */ color: oklch(46.7% 0.186 319.5);
Tailwind
colors: {
  custom: {
    50: '#ab6bb8',
    500: '#842799',
    950: '#000000',
  },
}
SCSS
$custom: #842799;
$custom-light: #ab6bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#842799",
  "rgb": {
    "r": 132,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 288.947,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.46654,
    "c": 0.18584,
    "h": 319.5
  },
  "luminance": 0.08656
}

Semantic roles & 50–950 ramp

primary
#842799
secondary
#70BD5F
accent
#E34562
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #842799

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

Preview Lab → · Contrast checker → · Palette generator →

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