#842FB6#842FB6

#842FB6 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.5% C 0.204 H 309.5°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#842FB6
RGBrgb(132, 47, 182)
HSLhsl(278, 59%, 45%)
HSVhsv(278, 74%, 71%)
CMYKcmyk(27.5%, 74.2%, 0%, 28.6%)
CIE-LABlab(38.40, 57.72, -55.44)
CIE-LCHlch(38.40, 80.03, 316.16°)
OKLaboklab(49.48% 0.1296 -0.1572)
OKLCHoklch(49.48% 0.204 309.5)
XYZxyz(18.9740, 10.3163, 45.2386)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FB6 #61B62F
analogous
#412FB6 #842FB6 #B62FA4
triadic
#842FB6 #B6842F #2FB684
tetradic
#842FB6 #B6412F #61B62F #2FA4B6
square
#842FB6 #B6412F #61B62F #2FA4B6
split-complementary
#842FB6 #A4B62F #2FB641
monochromatic
#3D1655 #612285 #842FB6 #A250D2 #BC81DE

Accessibility & contrast

On white

6.86
#842FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#842FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FB6
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FB6#FFFFFF#000000##FFFFFF
##842FB61.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BA
Deuteranopia (green-blind)
#095CB3
Tritanopia (blue-blind)
#7D4F70
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #842fb6;
/* rgb */ color: rgb(132, 47, 182);
/* oklch */ color: oklch(49.5% 0.204 309.5);
Tailwind
colors: {
  custom: {
    50: '#ac70cd',
    500: '#842fb6',
    950: '#000000',
  },
}
SCSS
$custom: #842fb6;
$custom-light: #ac70cd;
$custom-dark: #000000;
JSON
{
  "hex": "#842fb6",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 277.778,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4948,
    "c": 0.20372,
    "h": 309.5
  },
  "luminance": 0.10316
}

Semantic roles & 50–950 ramp

primary
#842FB6
secondary
#96C779
accent
#E24680
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #842FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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