#842FC4#842FC4

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

Color values

HEX#842FC4
RGBrgb(132, 47, 196)
HSLhsl(274, 61%, 48%)
HSVhsv(274, 76%, 77%)
CMYKcmyk(32.7%, 76%, 0%, 23.1%)
CIE-LABlab(39.45, 60.80, -61.96)
CIE-LCHlch(39.45, 86.81, 314.46°)
OKLaboklab(50.55% 0.1269 -0.1763)
OKLCHoklch(50.55% 0.217 305.7)
XYZxyz(20.4938, 10.9243, 53.2428)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FC4 #6FC42F
analogous
#392FC4 #842FC4 #C42FBA
triadic
#842FC4 #C4842F #2FC484
tetradic
#842FC4 #C4392F #6FC42F #2FBAC4
square
#842FC4 #C4392F #6FC42F #2FBAC4
split-complementary
#842FC4 #BAC42F #2FC439
monochromatic
#421761 #632393 #842FC4 #A159D7 #BD8AE3

Accessibility & contrast

On white

6.59
#842FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #842FC4
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FC4#FFFFFF#000000##FFFFFF
##842FC41.006.593.186.59
#FFFFFF6.591.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC8
Deuteranopia (green-blind)
#005DC1
Tritanopia (blue-blind)
#785578
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #842fc4;
/* rgb */ color: rgb(132, 47, 196);
/* oklch */ color: oklch(50.5% 0.217 305.7);
Tailwind
colors: {
  custom: {
    50: '#ad71d7',
    500: '#842fc4',
    950: '#000000',
  },
}
SCSS
$custom: #842fc4;
$custom-light: #ad71d7;
$custom-dark: #000000;
JSON
{
  "hex": "#842fc4",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 196
  },
  "hsl": {
    "h": 274.228,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50548,
    "c": 0.21723,
    "h": 305.7
  },
  "luminance": 0.10924
}

Semantic roles & 50–950 ramp

primary
#842FC4
secondary
#A2CD82
accent
#E44389
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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