#842E8B#842E8B

#842E8B is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.5% C 0.165 H 324.7°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#842E8B
RGBrgb(132, 46, 139)
HSLhsl(295, 50%, 36%)
HSVhsv(295, 67%, 55%)
CMYKcmyk(5%, 66.9%, 0%, 45.5%)
CIE-LABlab(35.45, 49.35, -34.26)
CIE-LCHlch(35.45, 60.08, 325.23°)
OKLaboklab(46.47% 0.1342 -0.0952)
OKLCHoklch(46.47% 0.165 324.7)
XYZxyz(15.1525, 8.7245, 25.3070)
Luminance0.0872 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E8B #358B2E
analogous
#562E8B #842E8B #8B2E64
triadic
#842E8B #8B842E #2E8B84
tetradic
#842E8B #8B562E #358B2E #2E648B
square
#842E8B #8B562E #358B2E #2E648B
split-complementary
#842E8B #648B2E #2E8B56
monochromatic
#2D102F #581F5D #842E8B #B03DB9 #C567CD

Accessibility & contrast

On white

7.65
#842E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#842E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E8B
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E8B#FFFFFF#000000##FFFFFF
##842E8B1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4D8E
Deuteranopia (green-blind)
#3F5789
Tritanopia (blue-blind)
#873C58
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #842e8b;
/* rgb */ color: rgb(132, 46, 139);
/* oklch */ color: oklch(46.5% 0.165 324.7);
Tailwind
colors: {
  custom: {
    50: '#ab6ead',
    500: '#842e8b',
    950: '#000000',
  },
}
SCSS
$custom: #842e8b;
$custom-light: #ab6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#842e8b",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 295.484,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46473,
    "c": 0.16452,
    "h": 324.7
  },
  "luminance": 0.08724
}

Semantic roles & 50–950 ramp

primary
#842E8B
secondary
#68B361
accent
#DA4E59
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #842E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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