#842BB2#842BB2

#842BB2 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.8% C 0.204 H 311.0°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#842BB2
RGBrgb(132, 43, 178)
HSLhsl(280, 61%, 43%)
HSVhsv(280, 76%, 70%)
CMYKcmyk(25.8%, 75.8%, 0%, 30.2%)
CIE-LABlab(37.57, 58.42, -54.42)
CIE-LCHlch(37.57, 79.84, 317.03°)
OKLaboklab(48.8% 0.1341 -0.1541)
OKLCHoklch(48.8% 0.204 311)
XYZxyz(18.4139, 9.8481, 43.0417)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842BB2 #59B22B
analogous
#412BB2 #842BB2 #B22B9C
triadic
#842BB2 #B2842B #2BB284
tetradic
#842BB2 #B2412B #59B22B #2B9CB2
square
#842BB2 #B2412B #59B22B #2B9CB2
split-complementary
#842BB2 #9CB22B #2BB241
monochromatic
#3B134F #5F1F81 #842BB2 #A348D3 #BC79DF

Accessibility & contrast

On white

7.07
#842BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#842BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842BB2
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842BB2#FFFFFF#000000##FFFFFF
##842BB21.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0D5AAF
Tritanopia (blue-blind)
#7E4B6D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #842bb2;
/* rgb */ color: rgb(132, 43, 178);
/* oklch */ color: oklch(48.8% 0.204 311.0);
Tailwind
colors: {
  custom: {
    50: '#ac6eca',
    500: '#842bb2',
    950: '#000000',
  },
}
SCSS
$custom: #842bb2;
$custom-light: #ac6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#842bb2",
  "rgb": {
    "r": 132,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 279.556,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48798,
    "c": 0.20428,
    "h": 311
  },
  "luminance": 0.09848
}

Semantic roles & 50–950 ramp

primary
#842BB2
secondary
#8FC772
accent
#E4447A
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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