#842899#842899

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

Color values

HEX#842899
RGBrgb(132, 40, 153)
HSLhsl(289, 59%, 38%)
HSVhsv(289, 74%, 60%)
CMYKcmyk(13.7%, 73.9%, 0%, 40%)
CIE-LABlab(35.45, 54.46, -42.83)
CIE-LCHlch(35.45, 69.28, 321.82°)
OKLaboklab(46.75% 0.1403 -0.1201)
OKLCHoklch(46.75% 0.185 319.4)
XYZxyz(16.0235, 8.7238, 30.9707)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842899 #3D9928
analogous
#4C2899 #842899 #992875
triadic
#842899 #998428 #289984
tetradic
#842899 #994C28 #3D9928 #287599
square
#842899 #994C28 #3D9928 #287599
split-complementary
#842899 #759928 #28994C
monochromatic
#300F38 #5A1B68 #842899 #AE35CA #C165D7

Accessibility & contrast

On white

7.65
#842899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#842899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842899
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842899#FFFFFF#000000##FFFFFF
##8428991.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #842899;
/* rgb */ color: rgb(132, 40, 153);
/* oklch */ color: oklch(46.7% 0.185 319.4);
Tailwind
colors: {
  custom: {
    50: '#ab6bb8',
    500: '#842899',
    950: '#000000',
  },
}
SCSS
$custom: #842899;
$custom-light: #ab6bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#842899",
  "rgb": {
    "r": 132,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 288.85,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46748,
    "c": 0.18469,
    "h": 319.4
  },
  "luminance": 0.08723
}

Semantic roles & 50–950 ramp

primary
#842899
secondary
#71BD60
accent
#E24663
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #842899

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

Preview Lab → · Contrast checker → · Palette generator →

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