#842DA8#842DA8

#842DA8 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.3% C 0.193 H 313.9°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#842DA8
RGBrgb(132, 45, 168)
HSLhsl(282, 58%, 42%)
HSVhsv(282, 73%, 66%)
CMYKcmyk(21.4%, 73.2%, 0%, 34.1%)
CIE-LABlab(37.13, 55.54, -49.17)
CIE-LCHlch(37.13, 74.17, 318.48°)
OKLaboklab(48.27% 0.1337 -0.1387)
OKLCHoklch(48.27% 0.193 313.9)
XYZxyz(17.5208, 9.6100, 37.9702)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842DA8 #51A82D
analogous
#472DA8 #842DA8 #A82D8F
triadic
#842DA8 #A8842D #2DA884
tetradic
#842DA8 #A8472D #51A82D #2D8FA8
square
#842DA8 #A8472D #51A82D #2D8FA8
split-complementary
#842DA8 #8FA82D #2DA847
monochromatic
#381347 #5E2078 #842DA8 #A545CD #BD75DA

Accessibility & contrast

On white

7.19
#842DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#842DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842DA8
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842DA8#FFFFFF#000000##FFFFFF
##842DA81.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AB
Deuteranopia (green-blind)
#2559A5
Tritanopia (blue-blind)
#804868
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #842da8;
/* rgb */ color: rgb(132, 45, 168);
/* oklch */ color: oklch(48.3% 0.193 313.9);
Tailwind
colors: {
  custom: {
    50: '#ac6ec3',
    500: '#842da8',
    950: '#000000',
  },
}
SCSS
$custom: #842da8;
$custom-light: #ac6ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#842da8",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 282.439,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48266,
    "c": 0.19266,
    "h": 313.9
  },
  "luminance": 0.09609
}

Semantic roles & 50–950 ramp

primary
#842DA8
secondary
#87C26F
accent
#E14774
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #842DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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