#842FB3#842FB3

#842FB3 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.3% C 0.201 H 310.4°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#842FB3
RGBrgb(132, 47, 179)
HSLhsl(279, 58%, 44%)
HSVhsv(279, 74%, 70%)
CMYKcmyk(26.3%, 73.7%, 0%, 29.8%)
CIE-LABlab(38.19, 57.07, -54.01)
CIE-LCHlch(38.19, 78.58, 316.58°)
OKLaboklab(49.26% 0.1301 -0.153)
OKLCHoklch(49.26% 0.201 310.4)
XYZxyz(18.6673, 10.1937, 43.6233)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FB3 #5EB32F
analogous
#422FB3 #842FB3 #B32FA0
triadic
#842FB3 #B3842F #2FB384
tetradic
#842FB3 #B3422F #5EB32F #2FA0B3
square
#842FB3 #B3422F #5EB32F #2FA0B3
split-complementary
#842FB3 #A0B32F #2FB342
monochromatic
#3D1652 #602283 #842FB3 #A24FD1 #BC7FDD

Accessibility & contrast

On white

6.91
#842FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#842FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FB3
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FB3#FFFFFF#000000##FFFFFF
##842FB31.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#135BB0
Tritanopia (blue-blind)
#7E4D6F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #842fb3;
/* rgb */ color: rgb(132, 47, 179);
/* oklch */ color: oklch(49.3% 0.201 310.4);
Tailwind
colors: {
  custom: {
    50: '#ac70cb',
    500: '#842fb3',
    950: '#000000',
  },
}
SCSS
$custom: #842fb3;
$custom-light: #ac70cb;
$custom-dark: #000000;
JSON
{
  "hex": "#842fb3",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 278.636,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49259,
    "c": 0.20085,
    "h": 310.4
  },
  "luminance": 0.10193
}

Semantic roles & 50–950 ramp

primary
#842FB3
secondary
#94C678
accent
#E2467E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #842FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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