#842CA9#842CA9

#842CA9 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.2% C 0.195 H 313.7°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#842CA9
RGBrgb(132, 44, 169)
HSLhsl(282, 59%, 42%)
HSVhsv(282, 74%, 66%)
CMYKcmyk(21.9%, 74%, 0%, 33.7%)
CIE-LABlab(37.06, 56.14, -49.88)
CIE-LCHlch(37.06, 75.10, 318.38°)
OKLaboklab(48.24% 0.1346 -0.1408)
OKLCHoklch(48.24% 0.195 313.7)
XYZxyz(17.5766, 9.5720, 38.4501)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CA9 #51A92C
analogous
#462CA9 #842CA9 #A92C90
triadic
#842CA9 #A9842C #2CA984
tetradic
#842CA9 #A9462C #51A92C #2C90A9
square
#842CA9 #A9462C #51A92C #2C90A9
split-complementary
#842CA9 #90A92C #2CA946
monochromatic
#381348 #5E1F78 #842CA9 #A544CE #BD74DB

Accessibility & contrast

On white

7.21
#842CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#842CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842CA9
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CA9#FFFFFF#000000##FFFFFF
##842CA91.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#2259A6
Tritanopia (blue-blind)
#804868
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #842ca9;
/* rgb */ color: rgb(132, 44, 169);
/* oklch */ color: oklch(48.2% 0.195 313.7);
Tailwind
colors: {
  custom: {
    50: '#ac6ec3',
    500: '#842ca9',
    950: '#000000',
  },
}
SCSS
$custom: #842ca9;
$custom-light: #ac6ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#842ca9",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 282.24,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48239,
    "c": 0.19476,
    "h": 313.7
  },
  "luminance": 0.09571
}

Semantic roles & 50–950 ramp

primary
#842CA9
secondary
#87C36E
accent
#E24674
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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