#842FA0#842FA0

#842FA0 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.9% C 0.183 H 316.5°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#842FA0
RGBrgb(132, 47, 160)
HSLhsl(285, 55%, 41%)
HSVhsv(285, 71%, 63%)
CMYKcmyk(17.5%, 70.6%, 0%, 37.3%)
CIE-LABlab(36.89, 53.07, -44.75)
CIE-LCHlch(36.89, 69.42, 319.86°)
OKLaboklab(47.92% 0.1325 -0.1258)
OKLCHoklch(47.92% 0.183 316.5)
XYZxyz(16.8764, 9.4773, 34.1912)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FA0 #4BA02F
analogous
#4C2FA0 #842FA0 #A02F83
triadic
#842FA0 #A0842F #2FA084
tetradic
#842FA0 #A04C2F #4BA02F #2F83A0
square
#842FA0 #A04C2F #4BA02F #2F83A0
split-complementary
#842FA0 #83A02F #2FA04C
monochromatic
#361341 #5D2171 #842FA0 #A744C8 #BE73D6

Accessibility & contrast

On white

7.25
#842FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #842FA0
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FA0#FFFFFF#000000##FFFFFF
##842FA01.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A3
Deuteranopia (green-blind)
#30599D
Tritanopia (blue-blind)
#824564
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #842fa0;
/* rgb */ color: rgb(132, 47, 160);
/* oklch */ color: oklch(47.9% 0.183 316.5);
Tailwind
colors: {
  custom: {
    50: '#ab6fbd',
    500: '#842fa0',
    950: '#000000',
  },
}
SCSS
$custom: #842fa0;
$custom-light: #ab6fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#842fa0",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 285.133,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47921,
    "c": 0.18267,
    "h": 316.5
  },
  "luminance": 0.09477
}

Semantic roles & 50–950 ramp

primary
#842FA0
secondary
#81BE6D
accent
#DE4A6F
background
#FAF7FB
surface
#F5EDF6
border
#CFC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #842FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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