#7842E2#7842E2

#7842E2 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.7% C 0.227 H 292.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#7842E2
RGBrgb(120, 66, 226)
HSLhsl(260, 73%, 57%)
HSVhsv(260, 71%, 89%)
CMYKcmyk(46.9%, 70.8%, 0%, 11.4%)
CIE-LABlab(43.33, 57.72, -72.98)
CIE-LCHlch(43.33, 93.05, 308.34°)
OKLaboklab(53.71% 0.0868 -0.2092)
OKLCHoklch(53.71% 0.227 292.5)
XYZxyz(23.4176, 13.3797, 73.2854)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7842E2 #ACE242
analogous
#425CE2 #7842E2 #C842E2
triadic
#7842E2 #E27842 #42E278
tetradic
#7842E2 #E2425C #ACE242 #42E2C8
square
#7842E2 #E2425C #ACE242 #42E2C8
split-complementary
#7842E2 #E2C842 #5CE242
monochromatic
#411793 #581FC8 #7842E2 #9E77EA #C4ACF2

Accessibility & contrast

On white

5.71
#7842E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#7842E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7842E2
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7842E2#FFFFFF#000000##FFFFFF
##7842E21.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E7
Deuteranopia (green-blind)
#0063DF
Tritanopia (blue-blind)
#576B8E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7842e2;
/* rgb */ color: rgb(120, 66, 226);
/* oklch */ color: oklch(53.7% 0.227 292.5);
Tailwind
colors: {
  custom: {
    50: '#a87bec',
    500: '#7842e2',
    950: '#000000',
  },
}
SCSS
$custom: #7842e2;
$custom-light: #a87bec;
$custom-dark: #000000;
JSON
{
  "hex": "#7842e2",
  "rgb": {
    "r": 120,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 260.25,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.53705,
    "c": 0.2265,
    "h": 292.5
  },
  "luminance": 0.1338
}

Semantic roles & 50–950 ramp

primary
#7842E2
secondary
#CAE09F
accent
#F038B2
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7842E2

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

Preview Lab → · Contrast checker → · Palette generator →

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