#842198#842198

#842198 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.191 H 320.1°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#842198
RGBrgb(132, 33, 152)
HSLhsl(290, 64%, 36%)
HSVhsv(290, 78%, 60%)
CMYKcmyk(13.2%, 78.3%, 0%, 40.4%)
CIE-LABlab(34.52, 56.73, -43.71)
CIE-LCHlch(34.52, 71.62, 322.39°)
OKLaboklab(46.07% 0.1469 -0.1226)
OKLCHoklch(46.07% 0.191 320.1)
XYZxyz(15.7264, 8.2611, 30.4659)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842198 #359821
analogous
#492198 #842198 #982171
triadic
#842198 #988421 #219884
tetradic
#842198 #984921 #359821 #217198
square
#842198 #984921 #359821 #217198
split-complementary
#842198 #719821 #219849
monochromatic
#2D0B33 #581666 #842198 #B02CCA #C559DB

Accessibility & contrast

On white

7.92
#842198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#842198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842198
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842198#FFFFFF#000000##FFFFFF
##8421981.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#2D5495
Tritanopia (blue-blind)
#843A5C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #842198;
/* rgb */ color: rgb(132, 33, 152);
/* oklch */ color: oklch(46.1% 0.191 320.1);
Tailwind
colors: {
  custom: {
    50: '#ac68b7',
    500: '#842198',
    950: '#000000',
  },
}
SCSS
$custom: #842198;
$custom-light: #ac68b7;
$custom-dark: #000000;
JSON
{
  "hex": "#842198",
  "rgb": {
    "r": 132,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 289.916,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46069,
    "c": 0.19138,
    "h": 320.1
  },
  "luminance": 0.0826
}

Semantic roles & 50–950 ramp

primary
#842198
secondary
#68BF56
accent
#E7405D
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #842198

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

Preview Lab → · Contrast checker → · Palette generator →

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