#842CA3#842CA3

#842CA3 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.8% C 0.189 H 315.7°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#842CA3
RGBrgb(132, 44, 163)
HSLhsl(284, 57%, 41%)
HSVhsv(284, 73%, 64%)
CMYKcmyk(19%, 73%, 0%, 36.1%)
CIE-LABlab(36.65, 54.90, -46.94)
CIE-LCHlch(36.65, 72.23, 319.47°)
OKLaboklab(47.82% 0.1353 -0.1322)
OKLCHoklch(47.82% 0.189 315.7)
XYZxyz(17.0262, 9.3519, 35.5515)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CA3 #4BA32C
analogous
#492CA3 #842CA3 #A32C86
triadic
#842CA3 #A3842C #2CA384
tetradic
#842CA3 #A3492C #4BA32C #2C86A3
square
#842CA3 #A3492C #4BA32C #2C86A3
split-complementary
#842CA3 #86A32C #2CA349
monochromatic
#361243 #5D1F73 #842CA3 #A741CC #BE71D9

Accessibility & contrast

On white

7.32
#842CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#842CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842CA3
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CA3#FFFFFF#000000##FFFFFF
##842CA31.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#2A59A0
Tritanopia (blue-blind)
#824565
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #842ca3;
/* rgb */ color: rgb(132, 44, 163);
/* oklch */ color: oklch(47.8% 0.189 315.7);
Tailwind
colors: {
  custom: {
    50: '#ac6ebf',
    500: '#842ca3',
    950: '#000000',
  },
}
SCSS
$custom: #842ca3;
$custom-light: #ac6ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#842ca3",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 284.37,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47817,
    "c": 0.18915,
    "h": 315.7
  },
  "luminance": 0.09351
}

Semantic roles & 50–950 ramp

primary
#842CA3
secondary
#81C06B
accent
#E1476F
background
#FAF6FB
surface
#F5ECF7
border
#CFC7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #842CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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