#842FC0#842FC0

#842FC0 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.2% C 0.213 H 306.8°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#842FC0
RGBrgb(132, 47, 192)
HSLhsl(275, 61%, 47%)
HSVhsv(275, 76%, 75%)
CMYKcmyk(31.2%, 75.5%, 0%, 24.7%)
CIE-LABlab(39.15, 59.91, -60.12)
CIE-LCHlch(39.15, 84.87, 314.90°)
OKLaboklab(50.24% 0.1277 -0.1709)
OKLCHoklch(50.24% 0.213 306.8)
XYZxyz(20.0446, 10.7446, 50.8769)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FC0 #6BC02F
analogous
#3B2FC0 #842FC0 #C02FB4
triadic
#842FC0 #C0842F #2FC084
tetradic
#842FC0 #C03B2F #6BC02F #2FB4C0
square
#842FC0 #C03B2F #6BC02F #2FB4C0
split-complementary
#842FC0 #B4C02F #2FC03B
monochromatic
#40175E #62238F #842FC0 #A156D6 #BC88E2

Accessibility & contrast

On white

6.67
#842FC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#842FC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FC0
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FC0#FFFFFF#000000##FFFFFF
##842FC01.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC4
Deuteranopia (green-blind)
#005DBD
Tritanopia (blue-blind)
#7A5376
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #842fc0;
/* rgb */ color: rgb(132, 47, 192);
/* oklch */ color: oklch(50.2% 0.213 306.8);
Tailwind
colors: {
  custom: {
    50: '#ad70d4',
    500: '#842fc0',
    950: '#000000',
  },
}
SCSS
$custom: #842fc0;
$custom-light: #ad70d4;
$custom-dark: #000000;
JSON
{
  "hex": "#842fc0",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 192
  },
  "hsl": {
    "h": 275.172,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50238,
    "c": 0.21337,
    "h": 306.8
  },
  "luminance": 0.10744
}

Semantic roles & 50–950 ramp

primary
#842FC0
secondary
#9FCB7F
accent
#E44486
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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