#842FA5#842FA5

#842FA5 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.3% C 0.187 H 314.8°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#842FA5
RGBrgb(132, 47, 165)
HSLhsl(283, 56%, 42%)
HSVhsv(283, 72%, 65%)
CMYKcmyk(20%, 71.5%, 0%, 35.3%)
CIE-LABlab(37.22, 54.10, -47.23)
CIE-LCHlch(37.22, 71.82, 318.88°)
OKLaboklab(48.26% 0.132 -0.1331)
OKLCHoklch(48.26% 0.187 314.8)
XYZxyz(17.3226, 9.6558, 36.5413)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FA5 #50A52F
analogous
#492FA5 #842FA5 #A52F8B
triadic
#842FA5 #A5842F #2FA584
tetradic
#842FA5 #A5492F #50A52F #2F8BA5
square
#842FA5 #A5492F #50A52F #2F8BA5
split-complementary
#842FA5 #8BA52F #2FA549
monochromatic
#381446 #5E2175 #842FA5 #A647CB #BD76D8

Accessibility & contrast

On white

7.16
#842FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #842FA5
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FA5#FFFFFF#000000##FFFFFF
##842FA51.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#2A5AA2
Tritanopia (blue-blind)
#814867
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #842fa5;
/* rgb */ color: rgb(132, 47, 165);
/* oklch */ color: oklch(48.3% 0.187 314.8);
Tailwind
colors: {
  custom: {
    50: '#ac6fc0',
    500: '#842fa5',
    950: '#000000',
  },
}
SCSS
$custom: #842fa5;
$custom-light: #ac6fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#842fa5",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 283.22,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48262,
    "c": 0.18742,
    "h": 314.8
  },
  "luminance": 0.09655
}

Semantic roles & 50–950 ramp

primary
#842FA5
secondary
#86C070
accent
#DF4973
background
#FAF7FB
surface
#F5EDF7
border
#CFC8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #842FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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