#842998#842998

#842998 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.183 H 319.7°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#842998
RGBrgb(132, 41, 152)
HSLhsl(289, 58%, 38%)
HSVhsv(289, 73%, 60%)
CMYKcmyk(13.2%, 73%, 0%, 40.4%)
CIE-LABlab(35.52, 53.88, -42.11)
CIE-LCHlch(35.52, 68.38, 321.99°)
OKLaboklab(46.78% 0.1394 -0.118)
OKLCHoklch(46.78% 0.183 319.7)
XYZxyz(15.9754, 8.7592, 30.5489)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842998 #3D9829
analogous
#4C2998 #842998 #982974
triadic
#842998 #988429 #299884
tetradic
#842998 #984C29 #3D9829 #297498
square
#842998 #984C29 #3D9829 #297498
split-complementary
#842998 #749829 #29984C
monochromatic
#300F38 #5A1C68 #842998 #AE36C8 #C166D6

Accessibility & contrast

On white

7.63
#842998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#842998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842998
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842998#FFFFFF#000000##FFFFFF
##8429981.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#325795
Tritanopia (blue-blind)
#843E5E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #842998;
/* rgb */ color: rgb(132, 41, 152);
/* oklch */ color: oklch(46.8% 0.183 319.7);
Tailwind
colors: {
  custom: {
    50: '#ab6cb7',
    500: '#842998',
    950: '#000000',
  },
}
SCSS
$custom: #842998;
$custom-light: #ab6cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#842998",
  "rgb": {
    "r": 132,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 289.189,
    "s": 57.513,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46777,
    "c": 0.18263,
    "h": 319.7
  },
  "luminance": 0.08758
}

Semantic roles & 50–950 ramp

primary
#842998
secondary
#71BC61
accent
#E14763
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #842998

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

Preview Lab → · Contrast checker → · Palette generator →

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