#842DB2#842DB2

#842DB2 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.0% C 0.202 H 310.8°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#842DB2
RGBrgb(132, 45, 178)
HSLhsl(279, 60%, 44%)
HSVhsv(279, 75%, 70%)
CMYKcmyk(25.8%, 74.7%, 0%, 30.2%)
CIE-LABlab(37.84, 57.65, -53.99)
CIE-LCHlch(37.84, 78.98, 316.88°)
OKLaboklab(48.99% 0.1322 -0.1529)
OKLCHoklch(48.99% 0.202 310.8)
XYZxyz(18.4884, 9.9971, 43.0665)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842DB2 #5BB22D
analogous
#412DB2 #842DB2 #B22D9D
triadic
#842DB2 #B2842D #2DB284
tetradic
#842DB2 #B2412D #5BB22D #2D9DB2
square
#842DB2 #B2412D #5BB22D #2D9DB2
split-complementary
#842DB2 #9DB22D #2DB241
monochromatic
#3C1450 #602181 #842DB2 #A34BD1 #BC7CDE

Accessibility & contrast

On white

7.00
#842DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #842DB2
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842DB2#FFFFFF#000000##FFFFFF
##842DB21.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#125AAF
Tritanopia (blue-blind)
#7E4C6E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842db2;
/* rgb */ color: rgb(132, 45, 178);
/* oklch */ color: oklch(49.0% 0.202 310.8);
Tailwind
colors: {
  custom: {
    50: '#ac6fca',
    500: '#842db2',
    950: '#000000',
  },
}
SCSS
$custom: #842db2;
$custom-light: #ac6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#842db2",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 279.248,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48988,
    "c": 0.20212,
    "h": 310.8
  },
  "luminance": 0.09997
}

Semantic roles & 50–950 ramp

primary
#842DB2
secondary
#91C675
accent
#E3457C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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