#842FC8#842FC8

#842FC8 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.9% C 0.221 H 304.7°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#842FC8
RGBrgb(132, 47, 200)
HSLhsl(273, 62%, 48%)
HSVhsv(273, 77%, 78%)
CMYKcmyk(34%, 76.5%, 0%, 21.6%)
CIE-LABlab(39.76, 61.70, -63.78)
CIE-LCHlch(39.76, 88.74, 314.05°)
OKLaboklab(50.86% 0.126 -0.1817)
OKLCHoklch(50.86% 0.221 304.7)
XYZxyz(20.9552, 11.1088, 55.6726)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FC8 #73C82F
analogous
#372FC8 #842FC8 #C82FBF
triadic
#842FC8 #C8842F #2FC884
tetradic
#842FC8 #C8372F #73C82F #2FBFC8
square
#842FC8 #C8372F #73C82F #2FBFC8
split-complementary
#842FC8 #BFC82F #2FC837
monochromatic
#431865 #632396 #842FC8 #A15CD9 #BE8DE4

Accessibility & contrast

On white

6.52
#842FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#842FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FC8
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FC8#FFFFFF#000000##FFFFFF
##842FC81.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCC
Deuteranopia (green-blind)
#005EC5
Tritanopia (blue-blind)
#77567A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #842fc8;
/* rgb */ color: rgb(132, 47, 200);
/* oklch */ color: oklch(50.9% 0.221 304.7);
Tailwind
colors: {
  custom: {
    50: '#ae71da',
    500: '#842fc8',
    950: '#000000',
  },
}
SCSS
$custom: #842fc8;
$custom-light: #ae71da;
$custom-dark: #000000;
JSON
{
  "hex": "#842fc8",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 200
  },
  "hsl": {
    "h": 273.333,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50863,
    "c": 0.22108,
    "h": 304.7
  },
  "luminance": 0.11109
}

Semantic roles & 50–950 ramp

primary
#842FC8
secondary
#A5CF84
accent
#E5438B
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #842FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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