#842FC3#842FC3

#842FC3 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.5% C 0.216 H 306.0°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#842FC3
RGBrgb(132, 47, 195)
HSLhsl(274, 61%, 47%)
HSVhsv(274, 76%, 76%)
CMYKcmyk(32.3%, 75.9%, 0%, 23.5%)
CIE-LABlab(39.38, 60.58, -61.50)
CIE-LCHlch(39.38, 86.33, 314.57°)
OKLaboklab(50.47% 0.1271 -0.175)
OKLCHoklch(50.47% 0.216 306)
XYZxyz(20.3804, 10.8789, 52.6453)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FC3 #6EC32F
analogous
#3A2FC3 #842FC3 #C32FB8
triadic
#842FC3 #C3842F #2FC384
tetradic
#842FC3 #C33A2F #6EC32F #2FB8C3
square
#842FC3 #C33A2F #6EC32F #2FB8C3
split-complementary
#842FC3 #B8C32F #2FC33A
monochromatic
#411760 #632392 #842FC3 #A158D7 #BD8AE3

Accessibility & contrast

On white

6.61
#842FC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#842FC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FC3
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FC3#FFFFFF#000000##FFFFFF
##842FC31.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC7
Deuteranopia (green-blind)
#005DC0
Tritanopia (blue-blind)
#795478
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #842fc3;
/* rgb */ color: rgb(132, 47, 195);
/* oklch */ color: oklch(50.5% 0.216 306.0);
Tailwind
colors: {
  custom: {
    50: '#ad71d6',
    500: '#842fc3',
    950: '#000000',
  },
}
SCSS
$custom: #842fc3;
$custom-light: #ad71d6;
$custom-dark: #000000;
JSON
{
  "hex": "#842fc3",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 195
  },
  "hsl": {
    "h": 274.459,
    "s": 61.157,
    "l": 47.451
  },
  "oklch": {
    "l": 0.5047,
    "c": 0.21626,
    "h": 306
  },
  "luminance": 0.10879
}

Semantic roles & 50–950 ramp

primary
#842FC3
secondary
#A1CD81
accent
#E44488
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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