#842FBB#842FBB

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

Color values

HEX#842FBB
RGBrgb(132, 47, 187)
HSLhsl(276, 60%, 46%)
HSVhsv(276, 75%, 73%)
CMYKcmyk(29.4%, 74.9%, 0%, 26.7%)
CIE-LABlab(38.77, 58.81, -57.79)
CIE-LCHlch(38.77, 82.45, 315.50°)
OKLaboklab(49.86% 0.1287 -0.1641)
OKLCHoklch(49.86% 0.209 308.1)
XYZxyz(19.5000, 10.5267, 48.0087)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FBB #66BB2F
analogous
#3E2FBB #842FBB #BB2FAC
triadic
#842FBB #BB842F #2FBB84
tetradic
#842FBB #BB3E2F #66BB2F #2FACBB
square
#842FBB #BB3E2F #66BB2F #2FACBB
split-complementary
#842FBB #ACBB2F #2FBB3E
monochromatic
#3F1659 #61238A #842FBB #A153D4 #BC84E0

Accessibility & contrast

On white

6.76
#842FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #842FBB
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FBB#FFFFFF#000000##FFFFFF
##842FBB1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#005CB8
Tritanopia (blue-blind)
#7B5173
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #842fbb;
/* rgb */ color: rgb(132, 47, 187);
/* oklch */ color: oklch(49.9% 0.209 308.1);
Tailwind
colors: {
  custom: {
    50: '#ad70d0',
    500: '#842fbb',
    950: '#000000',
  },
}
SCSS
$custom: #842fbb;
$custom-light: #ad70d0;
$custom-dark: #000000;
JSON
{
  "hex": "#842fbb",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 276.429,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49855,
    "c": 0.20855,
    "h": 308.1
  },
  "luminance": 0.10526
}

Semantic roles & 50–950 ramp

primary
#842FBB
secondary
#9BC97C
accent
#E34583
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #842FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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