#7842CF#7842CF

#7842CF is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.2% C 0.205 H 296.0°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#7842CF
RGBrgb(120, 66, 207)
HSLhsl(263, 59%, 54%)
HSVhsv(263, 68%, 81%)
CMYKcmyk(42%, 68.1%, 0%, 18.8%)
CIE-LABlab(41.84, 52.76, -64.53)
CIE-LCHlch(41.84, 83.35, 309.27°)
OKLaboklab(52.18% 0.0901 -0.1844)
OKLCHoklch(52.18% 0.205 296)
XYZxyz(20.9535, 12.3940, 60.3077)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7842CF #99CF42
analogous
#4252CF #7842CF #BF42CF
triadic
#7842CF #CF7842 #42CF78
tetradic
#7842CF #CF4252 #99CF42 #42CFBF
square
#7842CF #CF4252 #99CF42 #42CFBF
split-complementary
#7842CF #CFBF42 #52CF42
monochromatic
#411F78 #5B2BA9 #7842CF #9B73DB #BEA4E8

Accessibility & contrast

On white

6.04
#7842CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7842CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7842CF
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7842CF#FFFFFF#000000##FFFFFF
##7842CF1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D3
Deuteranopia (green-blind)
#0061CC
Tritanopia (blue-blind)
#616483
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7842cf;
/* rgb */ color: rgb(120, 66, 207);
/* oklch */ color: oklch(52.2% 0.205 296.0);
Tailwind
colors: {
  custom: {
    50: '#a67adf',
    500: '#7842cf',
    950: '#000000',
  },
}
SCSS
$custom: #7842cf;
$custom-light: #a67adf;
$custom-dark: #000000;
JSON
{
  "hex": "#7842cf",
  "rgb": {
    "r": 120,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 262.979,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52176,
    "c": 0.20526,
    "h": 296
  },
  "luminance": 0.12394
}

Semantic roles & 50–950 ramp

primary
#7842CF
secondary
#BDD598
accent
#E345A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7842CF

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

Preview Lab → · Contrast checker → · Palette generator →

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