#842AC0#842AC0

#842AC0 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.8% C 0.218 H 307.2°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#842AC0
RGBrgb(132, 42, 192)
HSLhsl(276, 64%, 46%)
HSVhsv(276, 78%, 75%)
CMYKcmyk(31.2%, 78.1%, 0%, 24.7%)
CIE-LABlab(38.49, 61.79, -61.18)
CIE-LCHlch(38.49, 86.95, 315.29°)
OKLaboklab(49.78% 0.132 -0.174)
OKLCHoklch(49.78% 0.218 307.2)
XYZxyz(19.8561, 10.3675, 50.8140)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842AC0 #66C02A
analogous
#392AC0 #842AC0 #C02AB1
triadic
#842AC0 #C0842A #2AC084
tetradic
#842AC0 #C0392A #66C02A #2AB1C0
square
#842AC0 #C0392A #66C02A #2AB1C0
split-complementary
#842AC0 #B1C02A #2AC039
monochromatic
#3F145C #611F8E #842AC0 #A14FD8 #BC81E3

Accessibility & contrast

On white

6.83
#842AC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#842AC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842AC0
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842AC0#FFFFFF#000000##FFFFFF
##842AC01.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C4
Deuteranopia (green-blind)
#005BBD
Tritanopia (blue-blind)
#7A5175
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #842ac0;
/* rgb */ color: rgb(132, 42, 192);
/* oklch */ color: oklch(49.8% 0.218 307.2);
Tailwind
colors: {
  custom: {
    50: '#ad6ed4',
    500: '#842ac0',
    950: '#000000',
  },
}
SCSS
$custom: #842ac0;
$custom-light: #ad6ed4;
$custom-dark: #000000;
JSON
{
  "hex": "#842ac0",
  "rgb": {
    "r": 132,
    "g": 42,
    "b": 192
  },
  "hsl": {
    "h": 276,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49779,
    "c": 0.21839,
    "h": 307.2
  },
  "luminance": 0.10367
}

Semantic roles & 50–950 ramp

primary
#842AC0
secondary
#9BCC7A
accent
#E74183
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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