#7842BF#7842BF

#7842BF is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.187 H 299.5°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#7842BF
RGBrgb(120, 66, 191)
HSLhsl(266, 49%, 50%)
HSVhsv(266, 65%, 75%)
CMYKcmyk(37.2%, 65.4%, 0%, 25.1%)
CIE-LABlab(40.66, 48.64, -57.15)
CIE-LCHlch(40.66, 75.05, 310.40°)
OKLaboklab(50.96% 0.0922 -0.1627)
OKLCHoklch(50.96% 0.187 299.5)
XYZxyz(19.0956, 11.6509, 50.5229)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7842BF #89BF42
analogous
#424ABF #7842BF #B642BF
triadic
#7842BF #BF7842 #42BF78
tetradic
#7842BF #BF424A #89BF42 #42BFB6
square
#7842BF #BF424A #89BF42 #42BFB6
split-complementary
#7842BF #BFB642 #4ABF42
monochromatic
#3F2265 #5B3292 #7842BF #9970CE #B99DDE

Accessibility & contrast

On white

6.31
#7842BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7842BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7842BF
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7842BF#FFFFFF#000000##FFFFFF
##7842BF1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C3
Deuteranopia (green-blind)
#005FBC
Tritanopia (blue-blind)
#685E7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7842bf;
/* rgb */ color: rgb(120, 66, 191);
/* oklch */ color: oklch(51.0% 0.187 299.5);
Tailwind
colors: {
  custom: {
    50: '#a47ad3',
    500: '#7842bf',
    950: '#000000',
  },
}
SCSS
$custom: #7842bf;
$custom-light: #a47ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#7842bf",
  "rgb": {
    "r": 120,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 265.92,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.50958,
    "c": 0.18704,
    "h": 299.5
  },
  "luminance": 0.11651
}

Semantic roles & 50–950 ramp

primary
#7842BF
secondary
#B2CA93
accent
#D94F9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7842BF

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

Preview Lab → · Contrast checker → · Palette generator →

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