#842E97#842E97

#842E97 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.2% C 0.175 H 319.8°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#842E97
RGBrgb(132, 46, 151)
HSLhsl(289, 53%, 39%)
HSVhsv(289, 70%, 59%)
CMYKcmyk(12.6%, 69.5%, 0%, 40.8%)
CIE-LABlab(36.17, 51.67, -40.46)
CIE-LCHlch(36.17, 65.63, 321.94°)
OKLaboklab(47.22% 0.1341 -0.1132)
OKLCHoklch(47.22% 0.176 319.8)
XYZxyz(16.0779, 9.0947, 30.1807)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E97 #41972E
analogous
#4F2E97 #842E97 #972E75
triadic
#842E97 #97842E #2E9784
tetradic
#842E97 #974F2E #41972E #2E7597
square
#842E97 #974F2E #41972E #2E7597
split-complementary
#842E97 #75972E #2E974F
monochromatic
#321139 #5B2068 #842E97 #AC3EC4 #C06DD2

Accessibility & contrast

On white

7.45
#842E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#842E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E97
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E97#FFFFFF#000000##FFFFFF
##842E971.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024F9A
Deuteranopia (green-blind)
#375894
Tritanopia (blue-blind)
#84415F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #842e97;
/* rgb */ color: rgb(132, 46, 151);
/* oklch */ color: oklch(47.2% 0.175 319.8);
Tailwind
colors: {
  custom: {
    50: '#ab6eb6',
    500: '#842e97',
    950: '#000000',
  },
}
SCSS
$custom: #842e97;
$custom-light: #ab6eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#842e97",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 289.143,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.47221,
    "c": 0.1755,
    "h": 319.8
  },
  "luminance": 0.09094
}

Semantic roles & 50–950 ramp

primary
#842E97
secondary
#76BA67
accent
#DD4B65
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #842E97

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

Preview Lab → · Contrast checker → · Palette generator →

#842E97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva