#842278#842278

#842278 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.164 H 333.5°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#842278
RGBrgb(132, 34, 120)
HSLhsl(307, 59%, 33%)
HSVhsv(307, 74%, 52%)
CMYKcmyk(0%, 74.2%, 9.1%, 48.2%)
CIE-LABlab(32.72, 50.75, -26.75)
CIE-LCHlch(32.72, 57.37, 332.21°)
OKLaboklab(44.16% 0.1468 -0.0733)
OKLCHoklch(44.16% 0.164 333.5)
XYZxyz(13.4780, 7.4068, 18.4855)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842278 #22842E
analogous
#5F2284 #842278 #842247
triadic
#842278 #788422 #227884
tetradic
#842278 #845F22 #22842E #224784
square
#842278 #845F22 #22842E #224784
split-complementary
#842278 #478422 #22845F
monochromatic
#230920 #53154C #842278 #B52FA4 #D24FC2

Accessibility & contrast

On white

8.46
#842278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#842278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842278
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842278#FFFFFF#000000##FFFFFF
##8422781.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #842278;
/* rgb */ color: rgb(132, 34, 120);
/* oklch */ color: oklch(44.2% 0.164 333.5);
Tailwind
colors: {
  custom: {
    50: '#ab679f',
    500: '#842278',
    950: '#000000',
  },
}
SCSS
$custom: #842278;
$custom-light: #ab679f;
$custom-dark: #000000;
JSON
{
  "hex": "#842278",
  "rgb": {
    "r": 132,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 307.347,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44162,
    "c": 0.16407,
    "h": 333.5
  },
  "luminance": 0.07406
}

Semantic roles & 50–950 ramp

primary
#842278
secondary
#4DB55A
accent
#E25946
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842278

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

Preview Lab → · Contrast checker → · Palette generator →

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