#842FAB#842FAB

#842FAB is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.7% C 0.193 H 312.8°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#842FAB
RGBrgb(132, 47, 171)
HSLhsl(281, 57%, 43%)
HSVhsv(281, 73%, 67%)
CMYKcmyk(22.8%, 72.5%, 0%, 32.9%)
CIE-LABlab(37.63, 55.36, -50.17)
CIE-LCHlch(37.63, 74.71, 317.82°)
OKLaboklab(48.68% 0.1313 -0.1417)
OKLCHoklch(48.68% 0.193 312.8)
XYZxyz(17.8816, 9.8794, 39.4851)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FAB #56AB2F
analogous
#462FAB #842FAB #AB2F94
triadic
#842FAB #AB842F #2FAB84
tetradic
#842FAB #AB462F #56AB2F #2F94AB
square
#842FAB #AB462F #56AB2F #2F94AB
split-complementary
#842FAB #94AB2F #2FAB46
monochromatic
#3A154B #5F227B #842FAB #A44ACD #BC7ADA

Accessibility & contrast

On white

7.06
#842FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #842FAB
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FAB#FFFFFF#000000##FFFFFF
##842FAB1.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AF
Deuteranopia (green-blind)
#225AA8
Tritanopia (blue-blind)
#804A6A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842fab;
/* rgb */ color: rgb(132, 47, 171);
/* oklch */ color: oklch(48.7% 0.193 312.8);
Tailwind
colors: {
  custom: {
    50: '#ac70c5',
    500: '#842fab',
    950: '#000000',
  },
}
SCSS
$custom: #842fab;
$custom-light: #ac70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#842fab",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 281.129,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48681,
    "c": 0.19316,
    "h": 312.8
  },
  "luminance": 0.09879
}

Semantic roles & 50–950 ramp

primary
#842FAB
secondary
#8CC373
accent
#E04878
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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