#842BBC#842BBC

#842BBC is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.6% C 0.214 H 308.2°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#842BBC
RGBrgb(132, 43, 188)
HSLhsl(277, 63%, 45%)
HSVhsv(277, 77%, 74%)
CMYKcmyk(29.8%, 77.1%, 0%, 26.3%)
CIE-LABlab(38.31, 60.56, -59.12)
CIE-LCHlch(38.31, 84.64, 315.69°)
OKLaboklab(49.56% 0.1321 -0.168)
OKLCHoklch(49.56% 0.214 308.2)
XYZxyz(19.4548, 10.2644, 48.5236)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842BBC #63BC2B
analogous
#3C2BBC #842BBC #BC2BAB
triadic
#842BBC #BC842B #2BBC84
tetradic
#842BBC #BC3C2B #63BC2B #2BABBC
square
#842BBC #BC3C2B #63BC2B #2BABBC
split-complementary
#842BBC #ABBC2B #2BBC3C
monochromatic
#3E1458 #61208A #842BBC #A24ED6 #BC80E2

Accessibility & contrast

On white

6.88
#842BBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#842BBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842BBC
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842BBC#FFFFFF#000000##FFFFFF
##842BBC1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#005BB9
Tritanopia (blue-blind)
#7B4F73
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #842bbc;
/* rgb */ color: rgb(132, 43, 188);
/* oklch */ color: oklch(49.6% 0.214 308.2);
Tailwind
colors: {
  custom: {
    50: '#ad6ed1',
    500: '#842bbc',
    950: '#000000',
  },
}
SCSS
$custom: #842bbc;
$custom-light: #ad6ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#842bbc",
  "rgb": {
    "r": 132,
    "g": 43,
    "b": 188
  },
  "hsl": {
    "h": 276.828,
    "s": 62.771,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49556,
    "c": 0.21367,
    "h": 308.2
  },
  "luminance": 0.10264
}

Semantic roles & 50–950 ramp

primary
#842BBC
secondary
#98CB78
accent
#E64281
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842BBC

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

Preview Lab → · Contrast checker → · Palette generator →

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