#7846C2#7846C2

#7846C2 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.7% C 0.185 H 298.2°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#7846C2
RGBrgb(120, 70, 194)
HSLhsl(264, 50%, 52%)
HSVhsv(264, 64%, 76%)
CMYKcmyk(38.1%, 63.9%, 0%, 23.9%)
CIE-LABlab(41.64, 47.31, -57.31)
CIE-LCHlch(41.64, 74.32, 309.54°)
OKLaboklab(51.74% 0.0875 -0.1632)
OKLCHoklch(51.74% 0.185 298.2)
XYZxyz(19.6710, 12.2682, 52.3601)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7846C2 #90C246
analogous
#4652C2 #7846C2 #B646C2
triadic
#7846C2 #C27846 #46C278
tetradic
#7846C2 #C24652 #90C246 #46C2B6
square
#7846C2 #C24652 #90C246 #46C2B6
split-complementary
#7846C2 #C2B646 #52C246
monochromatic
#40236A #5C3299 #7846C2 #9A74D1 #BBA2E0

Accessibility & contrast

On white

6.08
#7846C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7846C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7846C2
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7846C2#FFFFFF#000000##FFFFFF
##7846C21.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0061BF
Tritanopia (blue-blind)
#67627E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7846c2;
/* rgb */ color: rgb(120, 70, 194);
/* oklch */ color: oklch(51.7% 0.185 298.2);
Tailwind
colors: {
  custom: {
    50: '#a47cd5',
    500: '#7846c2',
    950: '#000000',
  },
}
SCSS
$custom: #7846c2;
$custom-light: #a47cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7846c2",
  "rgb": {
    "r": 120,
    "g": 70,
    "b": 194
  },
  "hsl": {
    "h": 264.194,
    "s": 50.407,
    "l": 51.765
  },
  "oklch": {
    "l": 0.51735,
    "c": 0.18515,
    "h": 298.2
  },
  "luminance": 0.12268
}

Semantic roles & 50–950 ramp

primary
#7846C2
secondary
#B7CD97
accent
#DA4EA1
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7846C2

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

Preview Lab → · Contrast checker → · Palette generator →

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