#7842CA#7842CA

#7842CA is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.200 H 297.1°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7842CA
RGBrgb(120, 66, 202)
HSLhsl(264, 56%, 53%)
HSVhsv(264, 67%, 79%)
CMYKcmyk(40.6%, 67.3%, 0%, 20.8%)
CIE-LABlab(41.46, 51.46, -62.25)
CIE-LCHlch(41.46, 80.77, 309.58°)
OKLaboklab(51.79% 0.0909 -0.1777)
OKLCHoklch(51.79% 0.2 297.1)
XYZxyz(20.3519, 12.1534, 57.1392)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7842CA #94CA42
analogous
#4250CA #7842CA #BC42CA
triadic
#7842CA #CA7842 #42CA78
tetradic
#7842CA #CA4250 #94CA42 #42CABC
square
#7842CA #CA4250 #94CA42 #42CABC
split-complementary
#7842CA #CABC42 #50CA42
monochromatic
#402072 #5B2DA2 #7842CA #9A72D7 #BCA2E5

Accessibility & contrast

On white

6.12
#7842CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7842CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7842CA
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7842CA#FFFFFF#000000##FFFFFF
##7842CA1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#636281
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7842ca;
/* rgb */ color: rgb(120, 66, 202);
/* oklch */ color: oklch(51.8% 0.200 297.1);
Tailwind
colors: {
  custom: {
    50: '#a57adb',
    500: '#7842ca',
    950: '#000000',
  },
}
SCSS
$custom: #7842ca;
$custom-light: #a57adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7842ca",
  "rgb": {
    "r": 120,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 263.824,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51788,
    "c": 0.1996,
    "h": 297.1
  },
  "luminance": 0.12154
}

Semantic roles & 50–950 ramp

primary
#7842CA
secondary
#BAD196
accent
#DF48A3
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7842CA

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

Preview Lab → · Contrast checker → · Palette generator →

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