#842FAC#842FAC

#842FAC is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.194 H 312.5°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#842FAC
RGBrgb(132, 47, 172)
HSLhsl(281, 57%, 43%)
HSVhsv(281, 73%, 67%)
CMYKcmyk(23.3%, 72.7%, 0%, 32.5%)
CIE-LABlab(37.69, 55.57, -50.65)
CIE-LCHlch(37.69, 75.19, 317.65°)
OKLaboklab(48.75% 0.1312 -0.1431)
OKLCHoklch(48.75% 0.194 312.5)
XYZxyz(17.9773, 9.9176, 39.9890)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FAC #57AC2F
analogous
#452FAC #842FAC #AC2F95
triadic
#842FAC #AC842F #2FAC84
tetradic
#842FAC #AC452F #57AC2F #2F95AC
square
#842FAC #AC452F #57AC2F #2F95AC
split-complementary
#842FAC #95AC2F #2FAC45
monochromatic
#3A154C #5F227C #842FAC #A44BCE #BC7BDB

Accessibility & contrast

On white

7.04
#842FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#842FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842FAC
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FAC#FFFFFF#000000##FFFFFF
##842FAC1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B0
Deuteranopia (green-blind)
#215AA9
Tritanopia (blue-blind)
#7F4A6B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842fac;
/* rgb */ color: rgb(132, 47, 172);
/* oklch */ color: oklch(48.8% 0.194 312.5);
Tailwind
colors: {
  custom: {
    50: '#ac70c5',
    500: '#842fac',
    950: '#000000',
  },
}
SCSS
$custom: #842fac;
$custom-light: #ac70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#842fac",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 280.8,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.48753,
    "c": 0.19412,
    "h": 312.5
  },
  "luminance": 0.09917
}

Semantic roles & 50–950 ramp

primary
#842FAC
secondary
#8DC374
accent
#E04778
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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