#842FA2#842FA2

#842FA2 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.1% C 0.185 H 315.8°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#842FA2
RGBrgb(132, 47, 162)
HSLhsl(284, 55%, 41%)
HSVhsv(284, 71%, 64%)
CMYKcmyk(18.5%, 71%, 0%, 36.5%)
CIE-LABlab(37.02, 53.48, -45.75)
CIE-LCHlch(37.02, 70.38, 319.45°)
OKLaboklab(48.06% 0.1323 -0.1287)
OKLCHoklch(48.06% 0.185 315.8)
XYZxyz(17.0528, 9.5478, 35.1201)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FA2 #4DA22F
analogous
#4A2FA2 #842FA2 #A22F86
triadic
#842FA2 #A2842F #2FA284
tetradic
#842FA2 #A24A2F #4DA22F #2F86A2
square
#842FA2 #A24A2F #4DA22F #2F86A2
split-complementary
#842FA2 #86A22F #2FA24A
monochromatic
#371343 #5D2173 #842FA2 #A745C9 #BD75D7

Accessibility & contrast

On white

7.22
#842FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #842FA2
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FA2#FFFFFF#000000##FFFFFF
##842FA21.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #842fa2;
/* rgb */ color: rgb(132, 47, 162);
/* oklch */ color: oklch(48.1% 0.185 315.8);
Tailwind
colors: {
  custom: {
    50: '#ab6fbe',
    500: '#842fa2',
    950: '#000000',
  },
}
SCSS
$custom: #842fa2;
$custom-light: #ab6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#842fa2",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 284.348,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48056,
    "c": 0.18457,
    "h": 315.8
  },
  "luminance": 0.09547
}

Semantic roles & 50–950 ramp

primary
#842FA2
secondary
#83BF6E
accent
#DE4970
background
#FAF7FB
surface
#F5EDF7
border
#CFC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #842FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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