#842FC5#842FC5

#842FC5 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.6% C 0.218 H 305.5°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#842FC5
RGBrgb(132, 47, 197)
HSLhsl(274, 61%, 48%)
HSVhsv(274, 76%, 77%)
CMYKcmyk(33%, 76.1%, 0%, 22.7%)
CIE-LABlab(39.53, 61.03, -62.42)
CIE-LCHlch(39.53, 87.29, 314.35°)
OKLaboklab(50.63% 0.1267 -0.1777)
OKLCHoklch(50.63% 0.218 305.5)
XYZxyz(20.6080, 10.9699, 53.8442)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FC5 #70C52F
analogous
#392FC5 #842FC5 #C52FBB
triadic
#842FC5 #C5842F #2FC584
tetradic
#842FC5 #C5392F #70C52F #2FBBC5
square
#842FC5 #C5392F #70C52F #2FBBC5
split-complementary
#842FC5 #BBC52F #2FC539
monochromatic
#421762 #632394 #842FC5 #A15AD8 #BD8BE3

Accessibility & contrast

On white

6.57
#842FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#842FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FC5
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FC5#FFFFFF#000000##FFFFFF
##842FC51.006.573.196.57
#FFFFFF6.571.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC9
Deuteranopia (green-blind)
#005DC2
Tritanopia (blue-blind)
#785579
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #842fc5;
/* rgb */ color: rgb(132, 47, 197);
/* oklch */ color: oklch(50.6% 0.218 305.5);
Tailwind
colors: {
  custom: {
    50: '#ae71d8',
    500: '#842fc5',
    950: '#000000',
  },
}
SCSS
$custom: #842fc5;
$custom-light: #ae71d8;
$custom-dark: #000000;
JSON
{
  "hex": "#842fc5",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 197
  },
  "hsl": {
    "h": 274,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50627,
    "c": 0.21819,
    "h": 305.5
  },
  "luminance": 0.1097
}

Semantic roles & 50–950 ramp

primary
#842FC5
secondary
#A3CD82
accent
#E54389
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #842FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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