#842DBE#842DBE

#842DBE is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.9% C 0.214 H 307.5°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#842DBE
RGBrgb(132, 45, 190)
HSLhsl(276, 62%, 46%)
HSVhsv(276, 76%, 75%)
CMYKcmyk(30.5%, 76.3%, 0%, 25.5%)
CIE-LABlab(38.73, 60.25, -59.63)
CIE-LCHlch(38.73, 84.76, 315.30°)
OKLaboklab(49.89% 0.1299 -0.1695)
OKLCHoklch(49.89% 0.214 307.5)
XYZxyz(19.7464, 10.5003, 49.6917)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842DBE #67BE2D
analogous
#3B2DBE #842DBE #BE2DAF
triadic
#842DBE #BE842D #2DBE84
tetradic
#842DBE #BE3B2D #67BE2D #2DAFBE
square
#842DBE #BE3B2D #67BE2D #2DAFBE
split-complementary
#842DBE #AFBE2D #2DBE3B
monochromatic
#3F165B #62218D #842DBE #A152D6 #BC84E2

Accessibility & contrast

On white

6.77
#842DBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#842DBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842DBE
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842DBE#FFFFFF#000000##FFFFFF
##842DBE1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#005CBB
Tritanopia (blue-blind)
#7A5174
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #842dbe;
/* rgb */ color: rgb(132, 45, 190);
/* oklch */ color: oklch(49.9% 0.214 307.5);
Tailwind
colors: {
  custom: {
    50: '#ad6fd2',
    500: '#842dbe',
    950: '#000000',
  },
}
SCSS
$custom: #842dbe;
$custom-light: #ad6fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#842dbe",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 190
  },
  "hsl": {
    "h": 276,
    "s": 61.702,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49894,
    "c": 0.21353,
    "h": 307.5
  },
  "luminance": 0.105
}

Semantic roles & 50–950 ramp

primary
#842DBE
secondary
#9BCB7C
accent
#E54384
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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