#842797#842797

#842797 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.184 H 320.2°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#842797
RGBrgb(132, 39, 151)
HSLhsl(290, 59%, 37%)
HSVhsv(290, 74%, 59%)
CMYKcmyk(12.6%, 74.2%, 0%, 40.8%)
CIE-LABlab(35.19, 54.45, -42.03)
CIE-LCHlch(35.19, 68.78, 322.33°)
OKLaboklab(46.52% 0.1415 -0.1178)
OKLCHoklch(46.52% 0.184 320.2)
XYZxyz(15.8265, 8.5917, 30.0969)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842797 #3A9727
analogous
#4C2797 #842797 #972772
triadic
#842797 #978427 #279784
tetradic
#842797 #974C27 #3A9727 #277297
square
#842797 #974C27 #3A9727 #277297
split-complementary
#842797 #729727 #27974C
monochromatic
#2F0E36 #591A66 #842797 #AF34C8 #C362D6

Accessibility & contrast

On white

7.73
#842797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#842797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842797
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842797#FFFFFF#000000##FFFFFF
##8427971.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#325694
Tritanopia (blue-blind)
#853D5D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #842797;
/* rgb */ color: rgb(132, 39, 151);
/* oklch */ color: oklch(46.5% 0.184 320.2);
Tailwind
colors: {
  custom: {
    50: '#ab6bb6',
    500: '#842797',
    950: '#000000',
  },
}
SCSS
$custom: #842797;
$custom-light: #ab6bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#842797",
  "rgb": {
    "r": 132,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 289.821,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4652,
    "c": 0.18407,
    "h": 320.2
  },
  "luminance": 0.08591
}

Semantic roles & 50–950 ramp

primary
#842797
secondary
#6EBC5E
accent
#E24660
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #842797

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

Preview Lab → · Contrast checker → · Palette generator →

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