#842BB3#842BB3

#842BB3 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.9% C 0.205 H 310.7°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#842BB3
RGBrgb(132, 43, 179)
HSLhsl(279, 61%, 44%)
HSVhsv(279, 76%, 70%)
CMYKcmyk(26.3%, 76%, 0%, 29.8%)
CIE-LABlab(37.64, 58.63, -54.90)
CIE-LCHlch(37.64, 80.32, 316.88°)
OKLaboklab(48.87% 0.1339 -0.1555)
OKLCHoklch(48.87% 0.205 310.7)
XYZxyz(18.5147, 9.8884, 43.5724)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842BB3 #5AB32B
analogous
#402BB3 #842BB3 #B32B9E
triadic
#842BB3 #B3842B #2BB384
tetradic
#842BB3 #B3402B #5AB32B #2B9EB3
square
#842BB3 #B3402B #5AB32B #2B9EB3
split-complementary
#842BB3 #9EB32B #2BB340
monochromatic
#3B1350 #601F82 #842BB3 #A348D3 #BC79DF

Accessibility & contrast

On white

7.05
#842BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#842BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842BB3
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842BB3#FFFFFF#000000##FFFFFF
##842BB31.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#095AB0
Tritanopia (blue-blind)
#7E4B6E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842bb3;
/* rgb */ color: rgb(132, 43, 179);
/* oklch */ color: oklch(48.9% 0.205 310.7);
Tailwind
colors: {
  custom: {
    50: '#ac6ecb',
    500: '#842bb3',
    950: '#000000',
  },
}
SCSS
$custom: #842bb3;
$custom-light: #ac6ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#842bb3",
  "rgb": {
    "r": 132,
    "g": 43,
    "b": 179
  },
  "hsl": {
    "h": 279.265,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48873,
    "c": 0.20522,
    "h": 310.7
  },
  "luminance": 0.09888
}

Semantic roles & 50–950 ramp

primary
#842BB3
secondary
#90C773
accent
#E4437B
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110813
muted
#807B82

Preview Lab

Preview with #842BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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