#842097#842097

#842097 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.192 H 320.6°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#842097
RGBrgb(132, 32, 151)
HSLhsl(290, 65%, 36%)
HSVhsv(290, 79%, 59%)
CMYKcmyk(12.6%, 78.8%, 0%, 40.8%)
CIE-LABlab(34.34, 56.87, -43.38)
CIE-LCHlch(34.34, 71.53, 322.66°)
OKLaboklab(45.92% 0.1479 -0.1217)
OKLCHoklch(45.92% 0.192 320.6)
XYZxyz(15.6175, 8.1738, 30.0272)
Luminance0.0817 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842097 #339720
analogous
#482097 #842097 #97206E
triadic
#842097 #978420 #209784
tetradic
#842097 #974820 #339720 #206E97
square
#842097 #974820 #339720 #206E97
split-complementary
#842097 #6E9720 #209748
monochromatic
#2C0B32 #581564 #842097 #B02BC9 #C656DB

Accessibility & contrast

On white

7.97
#842097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#842097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842097
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842097#FFFFFF#000000##FFFFFF
##8420971.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#2D5494
Tritanopia (blue-blind)
#85395B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #842097;
/* rgb */ color: rgb(132, 32, 151);
/* oklch */ color: oklch(45.9% 0.192 320.6);
Tailwind
colors: {
  custom: {
    50: '#ac68b6',
    500: '#842097',
    950: '#000000',
  },
}
SCSS
$custom: #842097;
$custom-light: #ac68b6;
$custom-dark: #000000;
JSON
{
  "hex": "#842097",
  "rgb": {
    "r": 132,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 290.42,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45922,
    "c": 0.19151,
    "h": 320.6
  },
  "luminance": 0.08173
}

Semantic roles & 50–950 ramp

primary
#842097
secondary
#65BF54
accent
#E8405B
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #842097

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

Preview Lab → · Contrast checker → · Palette generator →

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