#7846BA#7846BA

#7846BA is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.2% C 0.176 H 300.1°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#7846BA
RGBrgb(120, 70, 186)
HSLhsl(266, 46%, 50%)
HSVhsv(266, 62%, 73%)
CMYKcmyk(35.5%, 62.4%, 0%, 27.1%)
CIE-LABlab(41.09, 45.25, -53.53)
CIE-LCHlch(41.09, 70.09, 310.21°)
OKLaboklab(51.16% 0.088 -0.1521)
OKLCHoklch(51.16% 0.176 300.1)
XYZxyz(18.7967, 11.9184, 47.7550)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7846BA #88BA46
analogous
#464EBA #7846BA #B246BA
triadic
#7846BA #BA7846 #46BA78
tetradic
#7846BA #BA464E #88BA46 #46BAB2
square
#7846BA #BA464E #88BA46 #46BAB2
split-complementary
#7846BA #BAB246 #4EBA46
monochromatic
#3F2461 #5B358E #7846BA #9973CB #B99FDB

Accessibility & contrast

On white

6.21
#7846BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7846BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7846BA
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7846BA#FFFFFF#000000##FFFFFF
##7846BA1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#1960B7
Tritanopia (blue-blind)
#6A5F79
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7846ba;
/* rgb */ color: rgb(120, 70, 186);
/* oklch */ color: oklch(51.2% 0.176 300.1);
Tailwind
colors: {
  custom: {
    50: '#a37ccf',
    500: '#7846ba',
    950: '#000000',
  },
}
SCSS
$custom: #7846ba;
$custom-light: #a37ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#7846ba",
  "rgb": {
    "r": 120,
    "g": 70,
    "b": 186
  },
  "hsl": {
    "h": 265.862,
    "s": 45.669,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51159,
    "c": 0.17573,
    "h": 300.1
  },
  "luminance": 0.11919
}

Semantic roles & 50–950 ramp

primary
#7846BA
secondary
#B1C894
accent
#D5529D
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7846BA

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

Preview Lab → · Contrast checker → · Palette generator →

#7846BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva