#842FB5#842FB5

#842FB5 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.4% C 0.203 H 309.8°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#842FB5
RGBrgb(132, 47, 181)
HSLhsl(278, 59%, 45%)
HSVhsv(278, 74%, 71%)
CMYKcmyk(27.1%, 74%, 0%, 29%)
CIE-LABlab(38.33, 57.50, -54.96)
CIE-LCHlch(38.33, 79.55, 316.29°)
OKLaboklab(49.41% 0.1298 -0.1558)
OKLCHoklch(49.41% 0.203 309.8)
XYZxyz(18.8711, 10.2752, 44.6963)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FB5 #60B52F
analogous
#412FB5 #842FB5 #B52FA3
triadic
#842FB5 #B5842F #2FB584
tetradic
#842FB5 #B5412F #60B52F #2FA3B5
square
#842FB5 #B5412F #60B52F #2FA3B5
split-complementary
#842FB5 #A3B52F #2FB541
monochromatic
#3D1654 #612284 #842FB5 #A250D1 #BC80DE

Accessibility & contrast

On white

6.87
#842FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#842FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FB5
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FB5#FFFFFF#000000##FFFFFF
##842FB51.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#0D5BB2
Tritanopia (blue-blind)
#7D4E70
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #842fb5;
/* rgb */ color: rgb(132, 47, 181);
/* oklch */ color: oklch(49.4% 0.203 309.8);
Tailwind
colors: {
  custom: {
    50: '#ac70cc',
    500: '#842fb5',
    950: '#000000',
  },
}
SCSS
$custom: #842fb5;
$custom-light: #ac70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#842fb5",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 278.06,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49406,
    "c": 0.20276,
    "h": 309.8
  },
  "luminance": 0.10275
}

Semantic roles & 50–950 ramp

primary
#842FB5
secondary
#95C779
accent
#E2467F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #842FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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