#842DBD#842DBD

#842DBD is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.8% C 0.213 H 307.7°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#842DBD
RGBrgb(132, 45, 189)
HSLhsl(276, 62%, 46%)
HSVhsv(276, 76%, 74%)
CMYKcmyk(30.2%, 76.2%, 0%, 25.9%)
CIE-LABlab(38.65, 60.03, -59.16)
CIE-LCHlch(38.65, 84.28, 315.42°)
OKLaboklab(49.82% 0.1301 -0.1681)
OKLCHoklch(49.82% 0.213 307.7)
XYZxyz(19.6375, 10.4567, 49.1181)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842DBD #66BD2D
analogous
#3C2DBD #842DBD #BD2DAE
triadic
#842DBD #BD842D #2DBD84
tetradic
#842DBD #BD3C2D #66BD2D #2DAEBD
square
#842DBD #BD3C2D #66BD2D #2DAEBD
split-complementary
#842DBD #AEBD2D #2DBD3C
monochromatic
#3F155A #61218C #842DBD #A152D6 #BC83E1

Accessibility & contrast

On white

6.79
#842DBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#842DBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842DBD
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842DBD#FFFFFF#000000##FFFFFF
##842DBD1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#7B5174
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #842dbd;
/* rgb */ color: rgb(132, 45, 189);
/* oklch */ color: oklch(49.8% 0.213 307.7);
Tailwind
colors: {
  custom: {
    50: '#ad6fd2',
    500: '#842dbd',
    950: '#000000',
  },
}
SCSS
$custom: #842dbd;
$custom-light: #ad6fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#842dbd",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 189
  },
  "hsl": {
    "h": 276.25,
    "s": 61.538,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49817,
    "c": 0.21258,
    "h": 307.7
  },
  "luminance": 0.10456
}

Semantic roles & 50–950 ramp

primary
#842DBD
secondary
#9BCB7B
accent
#E54383
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842DBD

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

Preview Lab → · Contrast checker → · Palette generator →

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