#842DA9#842DA9

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

Color values

HEX#842DA9
RGBrgb(132, 45, 169)
HSLhsl(282, 58%, 42%)
HSVhsv(282, 73%, 66%)
CMYKcmyk(21.9%, 73.4%, 0%, 33.7%)
CIE-LABlab(37.20, 55.75, -49.65)
CIE-LCHlch(37.20, 74.65, 318.31°)
OKLaboklab(48.34% 0.1336 -0.1402)
OKLCHoklch(48.34% 0.194 313.6)
XYZxyz(17.6143, 9.6474, 38.4627)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842DA9 #52A92D
analogous
#462DA9 #842DA9 #A92D90
triadic
#842DA9 #A9842D #2DA984
tetradic
#842DA9 #A9462D #52A92D #2D90A9
square
#842DA9 #A9462D #52A92D #2D90A9
split-complementary
#842DA9 #90A92D #2DA946
monochromatic
#391348 #5E2079 #842DA9 #A546CE #BC76DA

Accessibility & contrast

On white

7.17
#842DA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#842DA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842DA9
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842DA9#FFFFFF#000000##FFFFFF
##842DA91.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#235AA6
Tritanopia (blue-blind)
#804868
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #842da9;
/* rgb */ color: rgb(132, 45, 169);
/* oklch */ color: oklch(48.3% 0.194 313.6);
Tailwind
colors: {
  custom: {
    50: '#ac6ec3',
    500: '#842da9',
    950: '#000000',
  },
}
SCSS
$custom: #842da9;
$custom-light: #ac6ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#842da9",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 169
  },
  "hsl": {
    "h": 282.097,
    "s": 57.944,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48337,
    "c": 0.19361,
    "h": 313.6
  },
  "luminance": 0.09647
}

Semantic roles & 50–950 ramp

primary
#842DA9
secondary
#88C26F
accent
#E14775
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842DA9

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

Preview Lab → · Contrast checker → · Palette generator →

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