#842BA2#842BA2

#842BA2 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.6% C 0.189 H 316.1°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#842BA2
RGBrgb(132, 43, 162)
HSLhsl(285, 58%, 40%)
HSVhsv(285, 73%, 64%)
CMYKcmyk(18.5%, 73.5%, 0%, 36.5%)
CIE-LABlab(36.45, 55.09, -46.67)
CIE-LCHlch(36.45, 72.20, 319.73°)
OKLaboklab(47.65% 0.1364 -0.1314)
OKLCHoklch(47.65% 0.189 316.1)
XYZxyz(16.9002, 9.2426, 35.0692)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842BA2 #49A22B
analogous
#482BA2 #842BA2 #A22B84
triadic
#842BA2 #A2842B #2BA284
tetradic
#842BA2 #A2482B #49A22B #2B84A2
square
#842BA2 #A2482B #49A22B #2B84A2
split-complementary
#842BA2 #84A22B #2BA248
monochromatic
#351141 #5D1E72 #842BA2 #A83ECC #BE6FD9

Accessibility & contrast

On white

7.37
#842BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#842BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842BA2
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842BA2#FFFFFF#000000##FFFFFF
##842BA21.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#2A589F
Tritanopia (blue-blind)
#824464
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #842ba2;
/* rgb */ color: rgb(132, 43, 162);
/* oklch */ color: oklch(47.6% 0.189 316.1);
Tailwind
colors: {
  custom: {
    50: '#ac6dbe',
    500: '#842ba2',
    950: '#000000',
  },
}
SCSS
$custom: #842ba2;
$custom-light: #ac6dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#842ba2",
  "rgb": {
    "r": 132,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 284.874,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47649,
    "c": 0.18939,
    "h": 316.1
  },
  "luminance": 0.09242
}

Semantic roles & 50–950 ramp

primary
#842BA2
secondary
#7FC069
accent
#E1476E
background
#FAF6FB
surface
#F5ECF7
border
#CFC7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #842BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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