#842E95#842E95

#842E95 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.174 H 320.6°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#842E95
RGBrgb(132, 46, 149)
HSLhsl(290, 53%, 38%)
HSVhsv(290, 69%, 58%)
CMYKcmyk(11.4%, 69.1%, 0%, 41.6%)
CIE-LABlab(36.04, 51.28, -39.44)
CIE-LCHlch(36.04, 64.69, 322.43°)
OKLaboklab(47.09% 0.1342 -0.1102)
OKLCHoklch(47.09% 0.174 320.6)
XYZxyz(15.9169, 9.0302, 29.3326)
Luminance0.0903 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E95 #3F952E
analogous
#502E95 #842E95 #952E72
triadic
#842E95 #95842E #2E9584
tetradic
#842E95 #95502E #3F952E #2E7295
square
#842E95 #95502E #3F952E #2E7295
split-complementary
#842E95 #72952E #2E9550
monochromatic
#311137 #5B2066 #842E95 #AD3DC3 #C16CD2

Accessibility & contrast

On white

7.48
#842E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#842E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E95
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E95#FFFFFF#000000##FFFFFF
##842E951.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084F98
Deuteranopia (green-blind)
#385893
Tritanopia (blue-blind)
#85405E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #842e95;
/* rgb */ color: rgb(132, 46, 149);
/* oklch */ color: oklch(47.1% 0.174 320.6);
Tailwind
colors: {
  custom: {
    50: '#ab6eb5',
    500: '#842e95',
    950: '#000000',
  },
}
SCSS
$custom: #842e95;
$custom-light: #ab6eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#842e95",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 149
  },
  "hsl": {
    "h": 290.097,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.47092,
    "c": 0.17365,
    "h": 320.6
  },
  "luminance": 0.09029
}

Semantic roles & 50–950 ramp

primary
#842E95
secondary
#74B966
accent
#DC4C63
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #842E95

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

Preview Lab → · Contrast checker → · Palette generator →

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