#7842CC#7842CC

#7842CC is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 51.9% C 0.202 H 296.7°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#7842CC
RGBrgb(120, 66, 204)
HSLhsl(263, 58%, 53%)
HSVhsv(263, 68%, 80%)
CMYKcmyk(41.2%, 67.6%, 0%, 20%)
CIE-LABlab(41.61, 51.98, -63.17)
CIE-LCHlch(41.61, 81.80, 309.45°)
OKLaboklab(51.94% 0.0906 -0.1804)
OKLCHoklch(51.94% 0.202 296.7)
XYZxyz(20.5902, 12.2487, 58.3945)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7842CC #96CC42
analogous
#4251CC #7842CC #BD42CC
triadic
#7842CC #CC7842 #42CC78
tetradic
#7842CC #CC4251 #96CC42 #42CCBD
square
#7842CC #CC4251 #96CC42 #42CCBD
split-complementary
#7842CC #CCBD42 #51CC42
monochromatic
#411F74 #5B2CA4 #7842CC #9A72D9 #BDA2E6

Accessibility & contrast

On white

6.09
#7842CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7842CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7842CC
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7842CC#FFFFFF#000000##FFFFFF
##7842CC1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D0
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#636382
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7842cc;
/* rgb */ color: rgb(120, 66, 204);
/* oklch */ color: oklch(51.9% 0.202 296.7);
Tailwind
colors: {
  custom: {
    50: '#a57adc',
    500: '#7842cc',
    950: '#000000',
  },
}
SCSS
$custom: #7842cc;
$custom-light: #a57adc;
$custom-dark: #000000;
JSON
{
  "hex": "#7842cc",
  "rgb": {
    "r": 120,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 263.478,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.51943,
    "c": 0.20187,
    "h": 296.7
  },
  "luminance": 0.12249
}

Semantic roles & 50–950 ramp

primary
#7842CC
secondary
#BBD397
accent
#E147A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7842CC

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

Preview Lab → · Contrast checker → · Palette generator →

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