#842FA1#842FA1

#842FA1 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.0% C 0.184 H 316.1°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#842FA1
RGBrgb(132, 47, 161)
HSLhsl(285, 55%, 41%)
HSVhsv(285, 71%, 63%)
CMYKcmyk(18%, 70.8%, 0%, 36.9%)
CIE-LABlab(36.95, 53.27, -45.25)
CIE-LCHlch(36.95, 69.90, 319.65°)
OKLaboklab(47.99% 0.1324 -0.1273)
OKLCHoklch(47.99% 0.184 316.1)
XYZxyz(16.9643, 9.5124, 34.6538)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FA1 #4CA12F
analogous
#4B2FA1 #842FA1 #A12F85
triadic
#842FA1 #A1842F #2FA184
tetradic
#842FA1 #A14B2F #4CA12F #2F85A1
square
#842FA1 #A14B2F #4CA12F #2F85A1
split-complementary
#842FA1 #85A12F #2FA14B
monochromatic
#361342 #5D2172 #842FA1 #A745C9 #BD74D6

Accessibility & contrast

On white

7.24
#842FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#842FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842FA1
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FA1#FFFFFF#000000##FFFFFF
##842FA11.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A4
Deuteranopia (green-blind)
#2F599E
Tritanopia (blue-blind)
#824665
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #842fa1;
/* rgb */ color: rgb(132, 47, 161);
/* oklch */ color: oklch(48.0% 0.184 316.1);
Tailwind
colors: {
  custom: {
    50: '#ab6fbd',
    500: '#842fa1',
    950: '#000000',
  },
}
SCSS
$custom: #842fa1;
$custom-light: #ab6fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#842fa1",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 284.737,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47988,
    "c": 0.18362,
    "h": 316.1
  },
  "luminance": 0.09512
}

Semantic roles & 50–950 ramp

primary
#842FA1
secondary
#82BE6E
accent
#DE4A6F
background
#FAF7FB
surface
#F5EDF7
border
#CFC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #842FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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