#7842BC#7842BC

#7842BC is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.7% C 0.184 H 300.3°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7842BC
RGBrgb(120, 66, 188)
HSLhsl(267, 48%, 50%)
HSVhsv(267, 65%, 74%)
CMYKcmyk(36.2%, 64.9%, 0%, 26.3%)
CIE-LABlab(40.44, 47.87, -55.74)
CIE-LCHlch(40.44, 73.48, 310.66°)
OKLaboklab(50.74% 0.0925 -0.1586)
OKLCHoklch(50.74% 0.184 300.3)
XYZxyz(18.7688, 11.5202, 48.8020)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7842BC #86BC42
analogous
#4249BC #7842BC #B542BC
triadic
#7842BC #BC7842 #42BC78
tetradic
#7842BC #BC4249 #86BC42 #42BCB5
square
#7842BC #BC4249 #86BC42 #42BCB5
split-complementary
#7842BC #BCB542 #49BC42
monochromatic
#3E2261 #5B328F #7842BC #986FCC #B99CDC

Accessibility & contrast

On white

6.36
#7842BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7842BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7842BC
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7842BC#FFFFFF#000000##FFFFFF
##7842BC1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#045EB9
Tritanopia (blue-blind)
#695D79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7842bc;
/* rgb */ color: rgb(120, 66, 188);
/* oklch */ color: oklch(50.7% 0.184 300.3);
Tailwind
colors: {
  custom: {
    50: '#a47ad1',
    500: '#7842bc',
    950: '#000000',
  },
}
SCSS
$custom: #7842bc;
$custom-light: #a47ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#7842bc",
  "rgb": {
    "r": 120,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 266.557,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50738,
    "c": 0.18357,
    "h": 300.3
  },
  "luminance": 0.1152
}

Semantic roles & 50–950 ramp

primary
#7842BC
secondary
#B0C991
accent
#D8509C
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7842BC

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

Preview Lab → · Contrast checker → · Palette generator →

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