#842BB5#842BB5

#842BB5 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.0% C 0.207 H 310.1°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#842BB5
RGBrgb(132, 43, 181)
HSLhsl(279, 62%, 44%)
HSVhsv(279, 76%, 71%)
CMYKcmyk(27.1%, 76.2%, 0%, 29%)
CIE-LABlab(37.79, 59.06, -55.84)
CIE-LCHlch(37.79, 81.28, 316.60°)
OKLaboklab(49.02% 0.1335 -0.1583)
OKLCHoklch(49.02% 0.207 310.1)
XYZxyz(18.7184, 9.9699, 44.6454)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842BB5 #5CB52B
analogous
#3F2BB5 #842BB5 #B52BA1
triadic
#842BB5 #B5842B #2BB584
tetradic
#842BB5 #B53F2B #5CB52B #2BA1B5
square
#842BB5 #B53F2B #5CB52B #2BA1B5
split-complementary
#842BB5 #A1B52B #2BB53F
monochromatic
#3C1452 #601F84 #842BB5 #A349D4 #BC7BE0

Accessibility & contrast

On white

7.01
#842BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#842BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842BB5
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842BB5#FFFFFF#000000##FFFFFF
##842BB51.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#015AB2
Tritanopia (blue-blind)
#7D4C6F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842bb5;
/* rgb */ color: rgb(132, 43, 181);
/* oklch */ color: oklch(49.0% 0.207 310.1);
Tailwind
colors: {
  custom: {
    50: '#ad6ecc',
    500: '#842bb5',
    950: '#000000',
  },
}
SCSS
$custom: #842bb5;
$custom-light: #ad6ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#842bb5",
  "rgb": {
    "r": 132,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 278.696,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49023,
    "c": 0.20709,
    "h": 310.1
  },
  "luminance": 0.09969
}

Semantic roles & 50–950 ramp

primary
#842BB5
secondary
#92C874
accent
#E5437C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #842BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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