#842BB7#842BB7

#842BB7 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.2% C 0.209 H 309.6°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#842BB7
RGBrgb(132, 43, 183)
HSLhsl(278, 62%, 44%)
HSVhsv(278, 77%, 72%)
CMYKcmyk(27.9%, 76.5%, 0%, 28.2%)
CIE-LABlab(37.94, 59.48, -56.79)
CIE-LCHlch(37.94, 82.24, 316.33°)
OKLaboklab(49.17% 0.1331 -0.1611)
OKLCHoklch(49.17% 0.209 309.6)
XYZxyz(18.9251, 10.0526, 45.7339)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842BB7 #5EB72B
analogous
#3E2BB7 #842BB7 #B72BA4
triadic
#842BB7 #B7842B #2BB784
tetradic
#842BB7 #B73E2B #5EB72B #2BA4B7
square
#842BB7 #B73E2B #5EB72B #2BA4B7
split-complementary
#842BB7 #A4B72B #2BB73E
monochromatic
#3D1454 #601F85 #842BB7 #A24BD5 #BC7CE0

Accessibility & contrast

On white

6.98
#842BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#842BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842BB7
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842BB7#FFFFFF#000000##FFFFFF
##842BB71.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#005AB4
Tritanopia (blue-blind)
#7C4D70
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842bb7;
/* rgb */ color: rgb(132, 43, 183);
/* oklch */ color: oklch(49.2% 0.209 309.6);
Tailwind
colors: {
  custom: {
    50: '#ad6ecd',
    500: '#842bb7',
    950: '#000000',
  },
}
SCSS
$custom: #842bb7;
$custom-light: #ad6ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#842bb7",
  "rgb": {
    "r": 132,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 278.143,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49174,
    "c": 0.20897,
    "h": 309.6
  },
  "luminance": 0.10052
}

Semantic roles & 50–950 ramp

primary
#842BB7
secondary
#94C975
accent
#E5437E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #842BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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