#842BB8#842BB8

#842BB8 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.2% C 0.210 H 309.3°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#842BB8
RGBrgb(132, 43, 184)
HSLhsl(278, 62%, 45%)
HSVhsv(278, 77%, 72%)
CMYKcmyk(28.3%, 76.6%, 0%, 27.8%)
CIE-LABlab(38.01, 59.70, -57.26)
CIE-LCHlch(38.01, 82.72, 316.20°)
OKLaboklab(49.25% 0.1329 -0.1625)
OKLCHoklch(49.25% 0.21 309.3)
XYZxyz(19.0296, 10.0943, 46.2840)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842BB8 #5FB82B
analogous
#3D2BB8 #842BB8 #B82BA6
triadic
#842BB8 #B8842B #2BB884
tetradic
#842BB8 #B83D2B #5FB82B #2BA6B8
square
#842BB8 #B83D2B #5FB82B #2BA6B8
split-complementary
#842BB8 #A6B82B #2BB83D
monochromatic
#3D1455 #601F86 #842BB8 #A24BD5 #BC7DE1

Accessibility & contrast

On white

6.96
#842BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #842BB8
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842BB8#FFFFFF#000000##FFFFFF
##842BB81.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#005BB5
Tritanopia (blue-blind)
#7C4D70
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842bb8;
/* rgb */ color: rgb(132, 43, 184);
/* oklch */ color: oklch(49.2% 0.210 309.3);
Tailwind
colors: {
  custom: {
    50: '#ad6ece',
    500: '#842bb8',
    950: '#000000',
  },
}
SCSS
$custom: #842bb8;
$custom-light: #ad6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#842bb8",
  "rgb": {
    "r": 132,
    "g": 43,
    "b": 184
  },
  "hsl": {
    "h": 277.872,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49249,
    "c": 0.20991,
    "h": 309.3
  },
  "luminance": 0.10094
}

Semantic roles & 50–950 ramp

primary
#842BB8
secondary
#94C976
accent
#E5437F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #842BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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