#842BB6#842BB6

#842BB6 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.1% C 0.208 H 309.8°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#842BB6
RGBrgb(132, 43, 182)
HSLhsl(278, 62%, 44%)
HSVhsv(278, 76%, 71%)
CMYKcmyk(27.5%, 76.4%, 0%, 28.6%)
CIE-LABlab(37.86, 59.27, -56.32)
CIE-LCHlch(37.86, 81.76, 316.46°)
OKLaboklab(49.1% 0.1333 -0.1597)
OKLCHoklch(49.1% 0.208 309.8)
XYZxyz(18.8214, 10.0111, 45.1877)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842BB6 #5DB62B
analogous
#3E2BB6 #842BB6 #B62BA3
triadic
#842BB6 #B6842B #2BB684
tetradic
#842BB6 #B63E2B #5DB62B #2BA3B6
square
#842BB6 #B63E2B #5DB62B #2BA3B6
split-complementary
#842BB6 #A3B62B #2BB63E
monochromatic
#3C1453 #601F84 #842BB6 #A24AD4 #BC7BE0

Accessibility & contrast

On white

6.99
#842BB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#842BB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842BB6
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842BB6#FFFFFF#000000##FFFFFF
##842BB61.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#005AB3
Tritanopia (blue-blind)
#7D4D6F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842bb6;
/* rgb */ color: rgb(132, 43, 182);
/* oklch */ color: oklch(49.1% 0.208 309.8);
Tailwind
colors: {
  custom: {
    50: '#ad6ecd',
    500: '#842bb6',
    950: '#000000',
  },
}
SCSS
$custom: #842bb6;
$custom-light: #ad6ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#842bb6",
  "rgb": {
    "r": 132,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 278.417,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49098,
    "c": 0.20804,
    "h": 309.8
  },
  "luminance": 0.10011
}

Semantic roles & 50–950 ramp

primary
#842BB6
secondary
#93C875
accent
#E5437D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #842BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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