#842FB7#842FB7

#842FB7 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.6% C 0.205 H 309.2°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#842FB7
RGBrgb(132, 47, 183)
HSLhsl(278, 59%, 45%)
HSVhsv(278, 74%, 72%)
CMYKcmyk(27.9%, 74.3%, 0%, 28.2%)
CIE-LABlab(38.48, 57.94, -55.91)
CIE-LCHlch(38.48, 80.52, 316.02°)
OKLaboklab(49.56% 0.1295 -0.1585)
OKLCHoklch(49.56% 0.205 309.2)
XYZxyz(19.0778, 10.3578, 45.7848)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FB7 #62B72F
analogous
#402FB7 #842FB7 #B72FA6
triadic
#842FB7 #B7842F #2FB784
tetradic
#842FB7 #B7402F #62B72F #2FA6B7
square
#842FB7 #B7402F #62B72F #2FA6B7
split-complementary
#842FB7 #A6B72F #2FB740
monochromatic
#3E1656 #612286 #842FB7 #A251D2 #BC82DF

Accessibility & contrast

On white

6.84
#842FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#842FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FB7
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FB7#FFFFFF#000000##FFFFFF
##842FB71.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#045CB4
Tritanopia (blue-blind)
#7C4F71
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #842fb7;
/* rgb */ color: rgb(132, 47, 183);
/* oklch */ color: oklch(49.6% 0.205 309.2);
Tailwind
colors: {
  custom: {
    50: '#ad70cd',
    500: '#842fb7',
    950: '#000000',
  },
}
SCSS
$custom: #842fb7;
$custom-light: #ad70cd;
$custom-dark: #000000;
JSON
{
  "hex": "#842fb7",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 277.5,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49555,
    "c": 0.20469,
    "h": 309.2
  },
  "luminance": 0.10357
}

Semantic roles & 50–950 ramp

primary
#842FB7
secondary
#97C87A
accent
#E24580
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #842FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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