#842178#842178

#842178 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.165 H 333.4°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#842178
RGBrgb(132, 33, 120)
HSLhsl(307, 60%, 32%)
HSVhsv(307, 75%, 52%)
CMYKcmyk(0%, 75%, 9.1%, 48.2%)
CIE-LABlab(32.59, 51.11, -26.95)
CIE-LCHlch(32.59, 57.77, 332.20°)
OKLaboklab(44.07% 0.1478 -0.0739)
OKLCHoklch(44.07% 0.165 333.4)
XYZxyz(13.4498, 7.3505, 18.4761)
Luminance0.0735 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842178 #21842D
analogous
#5F2184 #842178 #842146
triadic
#842178 #788421 #217884
tetradic
#842178 #845F21 #21842D #214684
square
#842178 #845F21 #21842D #214684
split-complementary
#842178 #468421 #21845F
monochromatic
#22091F #53154B #842178 #B52DA5 #D24DC2

Accessibility & contrast

On white

8.50
#842178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#842178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842178
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842178#FFFFFF#000000##FFFFFF
##8421781.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E447A
Deuteranopia (green-blind)
#425276
Tritanopia (blue-blind)
#8A2B4A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #842178;
/* rgb */ color: rgb(132, 33, 120);
/* oklch */ color: oklch(44.1% 0.165 333.4);
Tailwind
colors: {
  custom: {
    50: '#ab679f',
    500: '#842178',
    950: '#000000',
  },
}
SCSS
$custom: #842178;
$custom-light: #ab679f;
$custom-dark: #000000;
JSON
{
  "hex": "#842178",
  "rgb": {
    "r": 132,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 307.273,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44073,
    "c": 0.16525,
    "h": 333.4
  },
  "luminance": 0.07349
}

Semantic roles & 50–950 ramp

primary
#842178
secondary
#4BB658
accent
#E35845
background
#FAF6F9
surface
#F5EBF2
border
#CFC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842178

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

Preview Lab → · Contrast checker → · Palette generator →

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