#842BA9#842BA9

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

Color values

HEX#842BA9
RGBrgb(132, 43, 169)
HSLhsl(282, 59%, 42%)
HSVhsv(282, 75%, 66%)
CMYKcmyk(21.9%, 74.6%, 0%, 33.7%)
CIE-LABlab(36.93, 56.53, -50.10)
CIE-LCHlch(36.93, 75.53, 318.45°)
OKLaboklab(48.14% 0.1355 -0.1414)
OKLCHoklch(48.14% 0.196 313.8)
XYZxyz(17.5398, 9.4984, 38.4379)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842BA9 #50A92B
analogous
#452BA9 #842BA9 #A92B8F
triadic
#842BA9 #A9842B #2BA984
tetradic
#842BA9 #A9452B #50A92B #2B8FA9
square
#842BA9 #A9452B #50A92B #2B8FA9
split-complementary
#842BA9 #8FA92B #2BA945
monochromatic
#381247 #5E1F78 #842BA9 #A642CF #BD73DB

Accessibility & contrast

On white

7.24
#842BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#842BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842BA9
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842BA9#FFFFFF#000000##FFFFFF
##842BA91.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#2159A6
Tritanopia (blue-blind)
#804768
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #842ba9;
/* rgb */ color: rgb(132, 43, 169);
/* oklch */ color: oklch(48.1% 0.196 313.8);
Tailwind
colors: {
  custom: {
    50: '#ac6ec3',
    500: '#842ba9',
    950: '#000000',
  },
}
SCSS
$custom: #842ba9;
$custom-light: #ac6ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#842ba9",
  "rgb": {
    "r": 132,
    "g": 43,
    "b": 169
  },
  "hsl": {
    "h": 282.381,
    "s": 59.434,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48142,
    "c": 0.19589,
    "h": 313.8
  },
  "luminance": 0.09498
}

Semantic roles & 50–950 ramp

primary
#842BA9
secondary
#86C36D
accent
#E34573
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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