#842CB3#842CB3

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

Color values

HEX#842CB3
RGBrgb(132, 44, 179)
HSLhsl(279, 61%, 44%)
HSVhsv(279, 75%, 70%)
CMYKcmyk(26.3%, 75.4%, 0%, 29.8%)
CIE-LABlab(37.77, 58.25, -54.68)
CIE-LCHlch(37.77, 79.90, 316.81°)
OKLaboklab(48.97% 0.133 -0.1549)
OKLCHoklch(48.97% 0.204 310.6)
XYZxyz(18.5515, 9.9620, 43.5847)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CB3 #5BB32C
analogous
#402CB3 #842CB3 #B32C9E
triadic
#842CB3 #B3842C #2CB384
tetradic
#842CB3 #B3402C #5BB32C #2C9EB3
square
#842CB3 #B3402C #5BB32C #2C9EB3
split-complementary
#842CB3 #9EB32C #2CB340
monochromatic
#3C1451 #602082 #842CB3 #A34AD2 #BC7BDF

Accessibility & contrast

On white

7.02
#842CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#842CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842CB3
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CB3#FFFFFF#000000##FFFFFF
##842CB31.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0C5AB0
Tritanopia (blue-blind)
#7E4C6E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842cb3;
/* rgb */ color: rgb(132, 44, 179);
/* oklch */ color: oklch(49.0% 0.204 310.6);
Tailwind
colors: {
  custom: {
    50: '#ac6ecb',
    500: '#842cb3',
    950: '#000000',
  },
}
SCSS
$custom: #842cb3;
$custom-light: #ac6ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#842cb3",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 279.111,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48966,
    "c": 0.20415,
    "h": 310.6
  },
  "luminance": 0.09962
}

Semantic roles & 50–950 ramp

primary
#842CB3
secondary
#91C774
accent
#E4447C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #842CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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