#842DC3#842DC3

#842DC3 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.3% C 0.218 H 306.2°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#842DC3
RGBrgb(132, 45, 195)
HSLhsl(275, 63%, 47%)
HSVhsv(275, 77%, 76%)
CMYKcmyk(32.3%, 76.9%, 0%, 23.5%)
CIE-LABlab(39.11, 61.35, -61.93)
CIE-LCHlch(39.11, 87.17, 314.73°)
OKLaboklab(50.28% 0.1288 -0.1762)
OKLCHoklch(50.28% 0.218 306.2)
XYZxyz(20.3023, 10.7226, 52.6193)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842DC3 #6CC32D
analogous
#392DC3 #842DC3 #C32DB7
triadic
#842DC3 #C3842D #2DC384
tetradic
#842DC3 #C3392D #6CC32D #2DB7C3
square
#842DC3 #C3392D #6CC32D #2DB7C3
split-complementary
#842DC3 #B7C32D #2DC339
monochromatic
#411660 #622291 #842DC3 #A155D8 #BD87E3

Accessibility & contrast

On white

6.68
#842DC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#842DC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842DC3
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842DC3#FFFFFF#000000##FFFFFF
##842DC31.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC7
Deuteranopia (green-blind)
#005CC0
Tritanopia (blue-blind)
#795377
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #842dc3;
/* rgb */ color: rgb(132, 45, 195);
/* oklch */ color: oklch(50.3% 0.218 306.2);
Tailwind
colors: {
  custom: {
    50: '#ad70d6',
    500: '#842dc3',
    950: '#000000',
  },
}
SCSS
$custom: #842dc3;
$custom-light: #ad70d6;
$custom-dark: #000000;
JSON
{
  "hex": "#842dc3",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 195
  },
  "hsl": {
    "h": 274.8,
    "s": 62.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50283,
    "c": 0.21829,
    "h": 306.2
  },
  "luminance": 0.10722
}

Semantic roles & 50–950 ramp

primary
#842DC3
secondary
#A0CD7F
accent
#E64287
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842DC3

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

Preview Lab → · Contrast checker → · Palette generator →

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