#842FB1#842FB1

#842FB1 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 49.1% C 0.199 H 311.0°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#842FB1
RGBrgb(132, 47, 177)
HSLhsl(279, 58%, 44%)
HSVhsv(279, 73%, 69%)
CMYKcmyk(25.4%, 73.4%, 0%, 30.6%)
CIE-LABlab(38.05, 56.64, -53.06)
CIE-LCHlch(38.05, 77.61, 316.87°)
OKLaboklab(49.11% 0.1305 -0.1502)
OKLCHoklch(49.11% 0.199 311)
XYZxyz(18.4665, 10.1133, 42.5657)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FB1 #5CB12F
analogous
#432FB1 #842FB1 #B12F9D
triadic
#842FB1 #B1842F #2FB184
tetradic
#842FB1 #B1432F #5CB12F #2F9DB1
square
#842FB1 #B1432F #5CB12F #2F9DB1
split-complementary
#842FB1 #9DB12F #2FB143
monochromatic
#3C1550 #602281 #842FB1 #A34DD0 #BC7EDD

Accessibility & contrast

On white

6.95
#842FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#842FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FB1
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FB1#FFFFFF#000000##FFFFFF
##842FB11.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B5
Deuteranopia (green-blind)
#185BAE
Tritanopia (blue-blind)
#7E4D6D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #842fb1;
/* rgb */ color: rgb(132, 47, 177);
/* oklch */ color: oklch(49.1% 0.199 311.0);
Tailwind
colors: {
  custom: {
    50: '#ac70c9',
    500: '#842fb1',
    950: '#000000',
  },
}
SCSS
$custom: #842fb1;
$custom-light: #ac70c9;
$custom-dark: #000000;
JSON
{
  "hex": "#842fb1",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 279.231,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49113,
    "c": 0.19892,
    "h": 311
  },
  "luminance": 0.10113
}

Semantic roles & 50–950 ramp

primary
#842FB1
secondary
#92C576
accent
#E1477C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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