#842279#842279

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

Color values

HEX#842279
RGBrgb(132, 34, 121)
HSLhsl(307, 59%, 33%)
HSVhsv(307, 74%, 52%)
CMYKcmyk(0%, 74.2%, 8.3%, 48.2%)
CIE-LABlab(32.77, 50.92, -27.30)
CIE-LCHlch(32.77, 57.77, 331.80°)
OKLaboklab(44.22% 0.1469 -0.0749)
OKLCHoklch(44.22% 0.165 333)
XYZxyz(13.5390, 7.4312, 18.8067)
Luminance0.0743 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842279 #22842D
analogous
#5E2284 #842279 #842248
triadic
#842279 #798422 #227984
tetradic
#842279 #845E22 #22842D #224884
square
#842279 #845E22 #22842D #224884
split-complementary
#842279 #488422 #22845E
monochromatic
#230920 #53154C #842279 #B52FA6 #D24FC3

Accessibility & contrast

On white

8.45
#842279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#842279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842279
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842279#FFFFFF#000000##FFFFFF
##8422791.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E447B
Deuteranopia (green-blind)
#425277
Tritanopia (blue-blind)
#8A2C4B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #842279;
/* rgb */ color: rgb(132, 34, 121);
/* oklch */ color: oklch(44.2% 0.165 333.0);
Tailwind
colors: {
  custom: {
    50: '#ab67a0',
    500: '#842279',
    950: '#000000',
  },
}
SCSS
$custom: #842279;
$custom-light: #ab67a0;
$custom-dark: #000000;
JSON
{
  "hex": "#842279",
  "rgb": {
    "r": 132,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 306.735,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44218,
    "c": 0.16485,
    "h": 333
  },
  "luminance": 0.0743
}

Semantic roles & 50–950 ramp

primary
#842279
secondary
#4DB558
accent
#E25746
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842279

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

Preview Lab → · Contrast checker → · Palette generator →

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