#842E93#842E93

#842E93 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.0% C 0.172 H 321.4°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#842E93
RGBrgb(132, 46, 147)
HSLhsl(291, 52%, 38%)
HSVhsv(291, 69%, 58%)
CMYKcmyk(10.2%, 68.7%, 0%, 42.4%)
CIE-LABlab(35.92, 50.89, -38.42)
CIE-LCHlch(35.92, 63.76, 322.95°)
OKLaboklab(46.97% 0.1342 -0.1072)
OKLCHoklch(46.97% 0.172 321.4)
XYZxyz(15.7586, 8.9669, 28.4988)
Luminance0.0897 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E93 #3D932E
analogous
#512E93 #842E93 #932E6F
triadic
#842E93 #93842E #2E9384
tetradic
#842E93 #93512E #3D932E #2E6F93
square
#842E93 #93512E #3D932E #2E6F93
split-complementary
#842E93 #6F932E #2E9351
monochromatic
#301136 #5A1F64 #842E93 #AE3DC2 #C16BD1

Accessibility & contrast

On white

7.52
#842E93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#842E93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E93
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E93#FFFFFF#000000##FFFFFF
##842E931.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4E96
Deuteranopia (green-blind)
#3A5891
Tritanopia (blue-blind)
#853F5D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #842e93;
/* rgb */ color: rgb(132, 46, 147);
/* oklch */ color: oklch(47.0% 0.172 321.4);
Tailwind
colors: {
  custom: {
    50: '#ab6eb3',
    500: '#842e93',
    950: '#000000',
  },
}
SCSS
$custom: #842e93;
$custom-light: #ab6eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#842e93",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 147
  },
  "hsl": {
    "h": 291.089,
    "s": 52.332,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46966,
    "c": 0.17181,
    "h": 321.4
  },
  "luminance": 0.08966
}

Semantic roles & 50–950 ramp

primary
#842E93
secondary
#71B865
accent
#DC4C61
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #842E93

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

Preview Lab → · Contrast checker → · Palette generator →

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