#842FC2#842FC2

#842FC2 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.4% C 0.215 H 306.2°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#842FC2
RGBrgb(132, 47, 194)
HSLhsl(275, 61%, 47%)
HSVhsv(275, 76%, 76%)
CMYKcmyk(32%, 75.8%, 0%, 23.9%)
CIE-LABlab(39.30, 60.36, -61.04)
CIE-LCHlch(39.30, 85.84, 314.68°)
OKLaboklab(50.39% 0.1273 -0.1736)
OKLCHoklch(50.39% 0.215 306.2)
XYZxyz(20.2677, 10.8338, 52.0519)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FC2 #6DC22F
analogous
#3B2FC2 #842FC2 #C22FB7
triadic
#842FC2 #C2842F #2FC284
tetradic
#842FC2 #C23B2F #6DC22F #2FB7C2
square
#842FC2 #C23B2F #6DC22F #2FB7C2
split-complementary
#842FC2 #B7C22F #2FC23B
monochromatic
#41175F #622391 #842FC2 #A158D6 #BD89E2

Accessibility & contrast

On white

6.63
#842FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#842FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FC2
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FC2#FFFFFF#000000##FFFFFF
##842FC21.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#005DBF
Tritanopia (blue-blind)
#795477
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #842fc2;
/* rgb */ color: rgb(132, 47, 194);
/* oklch */ color: oklch(50.4% 0.215 306.2);
Tailwind
colors: {
  custom: {
    50: '#ad71d5',
    500: '#842fc2',
    950: '#000000',
  },
}
SCSS
$custom: #842fc2;
$custom-light: #ad71d5;
$custom-dark: #000000;
JSON
{
  "hex": "#842fc2",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 194
  },
  "hsl": {
    "h": 274.694,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50392,
    "c": 0.2153,
    "h": 306.2
  },
  "luminance": 0.10834
}

Semantic roles & 50–950 ramp

primary
#842FC2
secondary
#A0CC81
accent
#E44487
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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