#7842CE#7842CE

#7842CE is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.1% C 0.204 H 296.3°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#7842CE
RGBrgb(120, 66, 206)
HSLhsl(263, 59%, 53%)
HSVhsv(263, 68%, 81%)
CMYKcmyk(41.7%, 68%, 0%, 19.2%)
CIE-LABlab(41.76, 52.50, -64.08)
CIE-LCHlch(41.76, 82.84, 309.33°)
OKLaboklab(52.1% 0.0903 -0.1831)
OKLCHoklch(52.1% 0.204 296.3)
XYZxyz(20.8316, 12.3453, 59.6659)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7842CE #98CE42
analogous
#4252CE #7842CE #BE42CE
triadic
#7842CE #CE7842 #42CE78
tetradic
#7842CE #CE4252 #98CE42 #42CEBE
square
#7842CE #CE4252 #98CE42 #42CEBE
split-complementary
#7842CE #CEBE42 #52CE42
monochromatic
#411F77 #5B2BA7 #7842CE #9B73DB #BDA3E7

Accessibility & contrast

On white

6.05
#7842CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7842CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7842CE
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7842CE#FFFFFF#000000##FFFFFF
##7842CE1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D2
Deuteranopia (green-blind)
#0061CB
Tritanopia (blue-blind)
#626483
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7842ce;
/* rgb */ color: rgb(120, 66, 206);
/* oklch */ color: oklch(52.1% 0.204 296.3);
Tailwind
colors: {
  custom: {
    50: '#a67ade',
    500: '#7842ce',
    950: '#000000',
  },
}
SCSS
$custom: #7842ce;
$custom-light: #a67ade;
$custom-dark: #000000;
JSON
{
  "hex": "#7842ce",
  "rgb": {
    "r": 120,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 263.143,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52098,
    "c": 0.20412,
    "h": 296.3
  },
  "luminance": 0.12346
}

Semantic roles & 50–950 ramp

primary
#7842CE
secondary
#BDD498
accent
#E246A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7842CE

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

Preview Lab → · Contrast checker → · Palette generator →

#7842CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva