#842FD0#842FD0

#842FD0 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.5% C 0.229 H 302.8°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#842FD0
RGBrgb(132, 47, 208)
HSLhsl(272, 63%, 50%)
HSVhsv(272, 77%, 82%)
CMYKcmyk(36.5%, 77.4%, 0%, 18.4%)
CIE-LABlab(40.40, 63.50, -67.39)
CIE-LCHlch(40.40, 92.60, 313.30°)
OKLaboklab(51.51% 0.124 -0.1923)
OKLCHoklch(51.51% 0.229 302.8)
XYZxyz(21.9147, 11.4926, 60.7260)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FD0 #7BD02F
analogous
#342FD0 #842FD0 #D02FCB
triadic
#842FD0 #D0842F #2FD084
tetradic
#842FD0 #D0342F #7BD02F #2FCBD0
square
#842FD0 #D0342F #7BD02F #2FCBD0
split-complementary
#842FD0 #CBD02F #2FD034
monochromatic
#45186C #64249E #842FD0 #A261DB #BF93E7

Accessibility & contrast

On white

6.37
#842FD0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#842FD0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FD0
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FD0#FFFFFF#000000##FFFFFF
##842FD01.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED4
Deuteranopia (green-blind)
#005FCD
Tritanopia (blue-blind)
#745A7F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #842fd0;
/* rgb */ color: rgb(132, 47, 208);
/* oklch */ color: oklch(51.5% 0.229 302.8);
Tailwind
colors: {
  custom: {
    50: '#ae71df',
    500: '#842fd0',
    950: '#000000',
  },
}
SCSS
$custom: #842fd0;
$custom-light: #ae71df;
$custom-dark: #000000;
JSON
{
  "hex": "#842fd0",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 208
  },
  "hsl": {
    "h": 271.677,
    "s": 63.137,
    "l": 50
  },
  "oklch": {
    "l": 0.51505,
    "c": 0.22881,
    "h": 302.8
  },
  "luminance": 0.11493
}

Semantic roles & 50–950 ramp

primary
#842FD0
secondary
#ABD189
accent
#E6428F
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #842FD0

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

Preview Lab → · Contrast checker → · Palette generator →

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