#842CBF#842CBF

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

Color values

HEX#842CBF
RGBrgb(132, 44, 191)
HSLhsl(276, 63%, 46%)
HSVhsv(276, 77%, 75%)
CMYKcmyk(30.9%, 77%, 0%, 25.1%)
CIE-LABlab(38.67, 60.84, -60.30)
CIE-LCHlch(38.67, 85.66, 315.25°)
OKLaboklab(49.88% 0.1306 -0.1714)
OKLCHoklch(49.88% 0.215 307.3)
XYZxyz(19.8184, 10.4687, 50.2567)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CBF #67BF2C
analogous
#3A2CBF #842CBF #BF2CB0
triadic
#842CBF #BF842C #2CBF84
tetradic
#842CBF #BF3A2C #67BF2C #2CB0BF
square
#842CBF #BF3A2C #67BF2C #2CB0BF
split-complementary
#842CBF #B0BF2C #2CBF3A
monochromatic
#3F155C #62218D #842CBF #A151D7 #BC83E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##842CBF#FFFFFF#000000##FFFFFF
##842CBF1.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)
#0058C3
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#7A5175
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #842cbf;
/* rgb */ color: rgb(132, 44, 191);
/* oklch */ color: oklch(49.9% 0.215 307.3);
Tailwind
colors: {
  custom: {
    50: '#ad6fd3',
    500: '#842cbf',
    950: '#000000',
  },
}
SCSS
$custom: #842cbf;
$custom-light: #ad6fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#842cbf",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 191
  },
  "hsl": {
    "h": 275.918,
    "s": 62.553,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49879,
    "c": 0.21549,
    "h": 307.3
  },
  "luminance": 0.10468
}

Semantic roles & 50–950 ramp

primary
#842CBF
secondary
#9BCC7B
accent
#E64284
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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