#842997#842997

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

Color values

HEX#842997
RGBrgb(132, 41, 151)
HSLhsl(290, 57%, 38%)
HSVhsv(290, 73%, 59%)
CMYKcmyk(12.6%, 72.8%, 0%, 40.8%)
CIE-LABlab(35.45, 53.69, -41.60)
CIE-LCHlch(35.45, 67.92, 322.23°)
OKLaboklab(46.71% 0.1395 -0.1165)
OKLCHoklch(46.71% 0.182 320.1)
XYZxyz(15.8939, 8.7266, 30.1194)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842997 #3C9729
analogous
#4D2997 #842997 #972973
triadic
#842997 #978429 #299784
tetradic
#842997 #974D29 #3C9729 #297397
square
#842997 #974D29 #3C9729 #297397
split-complementary
#842997 #739729 #29974D
monochromatic
#300F37 #5A1C67 #842997 #AE36C7 #C265D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##842997#FFFFFF#000000##FFFFFF
##8429971.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#335794
Tritanopia (blue-blind)
#853E5D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #842997;
/* rgb */ color: rgb(132, 41, 151);
/* oklch */ color: oklch(46.7% 0.182 320.1);
Tailwind
colors: {
  custom: {
    50: '#ab6cb6',
    500: '#842997',
    950: '#000000',
  },
}
SCSS
$custom: #842997;
$custom-light: #ab6cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#842997",
  "rgb": {
    "r": 132,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 289.636,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4671,
    "c": 0.18173,
    "h": 320.1
  },
  "luminance": 0.08726
}

Semantic roles & 50–950 ramp

primary
#842997
secondary
#70BB61
accent
#E14762
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #842997

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

Preview Lab → · Contrast checker → · Palette generator →

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