#842FBC#842FBC

#842FBC is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.9% C 0.210 H 307.8°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#842FBC
RGBrgb(132, 47, 188)
HSLhsl(276, 60%, 46%)
HSVhsv(276, 75%, 74%)
CMYKcmyk(29.8%, 75%, 0%, 26.3%)
CIE-LABlab(38.85, 59.03, -58.26)
CIE-LCHlch(38.85, 82.94, 315.38°)
OKLaboklab(49.93% 0.1285 -0.1655)
OKLCHoklch(49.93% 0.21 307.8)
XYZxyz(19.6074, 10.5697, 48.5744)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FBC #67BC2F
analogous
#3D2FBC #842FBC #BC2FAD
triadic
#842FBC #BC842F #2FBC84
tetradic
#842FBC #BC3D2F #67BC2F #2FADBC
square
#842FBC #BC3D2F #67BC2F #2FADBC
split-complementary
#842FBC #ADBC2F #2FBC3D
monochromatic
#3F175A #62238B #842FBC #A154D4 #BC85E0

Accessibility & contrast

On white

6.74
#842FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#842FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FBC
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FBC#FFFFFF#000000##FFFFFF
##842FBC1.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#7B5174
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #842fbc;
/* rgb */ color: rgb(132, 47, 188);
/* oklch */ color: oklch(49.9% 0.210 307.8);
Tailwind
colors: {
  custom: {
    50: '#ad70d1',
    500: '#842fbc',
    950: '#000000',
  },
}
SCSS
$custom: #842fbc;
$custom-light: #ad70d1;
$custom-dark: #000000;
JSON
{
  "hex": "#842fbc",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 188
  },
  "hsl": {
    "h": 276.17,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49931,
    "c": 0.20951,
    "h": 307.8
  },
  "luminance": 0.10569
}

Semantic roles & 50–950 ramp

primary
#842FBC
secondary
#9BCA7D
accent
#E34584
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #842FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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