#842FB2#842FB2

#842FB2 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.2% C 0.200 H 310.7°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#842FB2
RGBrgb(132, 47, 178)
HSLhsl(279, 58%, 44%)
HSVhsv(279, 74%, 70%)
CMYKcmyk(25.8%, 73.6%, 0%, 30.2%)
CIE-LABlab(38.12, 56.85, -53.54)
CIE-LCHlch(38.12, 78.09, 316.72°)
OKLaboklab(49.19% 0.1303 -0.1516)
OKLCHoklch(49.19% 0.2 310.7)
XYZxyz(18.5666, 10.1533, 43.0926)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FB2 #5DB22F
analogous
#432FB2 #842FB2 #B22F9F
triadic
#842FB2 #B2842F #2FB284
tetradic
#842FB2 #B2432F #5DB22F #2F9FB2
square
#842FB2 #B2432F #5DB22F #2F9FB2
split-complementary
#842FB2 #9FB22F #2FB243
monochromatic
#3C1551 #602282 #842FB2 #A24ED0 #BC7EDD

Accessibility & contrast

On white

6.93
#842FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#842FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FB2
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FB2#FFFFFF#000000##FFFFFF
##842FB21.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#155BAF
Tritanopia (blue-blind)
#7E4D6E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #842fb2;
/* rgb */ color: rgb(132, 47, 178);
/* oklch */ color: oklch(49.2% 0.200 310.7);
Tailwind
colors: {
  custom: {
    50: '#ac70ca',
    500: '#842fb2',
    950: '#000000',
  },
}
SCSS
$custom: #842fb2;
$custom-light: #ac70ca;
$custom-dark: #000000;
JSON
{
  "hex": "#842fb2",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 278.931,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49186,
    "c": 0.19987,
    "h": 310.7
  },
  "luminance": 0.10153
}

Semantic roles & 50–950 ramp

primary
#842FB2
secondary
#93C677
accent
#E1467D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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