#7846D9#7846D9

#7846D9 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.5% C 0.212 H 293.6°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#7846D9
RGBrgb(120, 70, 217)
HSLhsl(260, 66%, 56%)
HSVhsv(260, 68%, 85%)
CMYKcmyk(44.7%, 67.7%, 0%, 14.9%)
CIE-LABlab(43.33, 53.36, -67.84)
CIE-LCHlch(43.33, 86.31, 308.19°)
OKLaboklab(53.49% 0.0847 -0.1941)
OKLCHoklch(53.49% 0.212 293.6)
XYZxyz(22.4568, 13.3825, 67.0321)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7846D9 #A7D946
analogous
#465ED9 #7846D9 #C246D9
triadic
#7846D9 #D97846 #46D978
tetradic
#7846D9 #D9465E #A7D946 #46D9C2
square
#7846D9 #D9465E #A7D946 #46D9C2
split-complementary
#7846D9 #D9C246 #5ED946
monochromatic
#411C89 #5926BB #7846D9 #9D79E3 #C2ACEE

Accessibility & contrast

On white

5.71
#7846D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#7846D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7846D9
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7846D9#FFFFFF#000000##FFFFFF
##7846D91.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)
#0068DD
Deuteranopia (green-blind)
#0064D6
Tritanopia (blue-blind)
#5C6A8A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7846d9;
/* rgb */ color: rgb(120, 70, 217);
/* oklch */ color: oklch(53.5% 0.212 293.6);
Tailwind
colors: {
  custom: {
    50: '#a77de6',
    500: '#7846d9',
    950: '#000000',
  },
}
SCSS
$custom: #7846d9;
$custom-light: #a77de6;
$custom-dark: #000000;
JSON
{
  "hex": "#7846d9",
  "rgb": {
    "r": 120,
    "g": 70,
    "b": 217
  },
  "hsl": {
    "h": 260.408,
    "s": 65.919,
    "l": 56.275
  },
  "oklch": {
    "l": 0.53487,
    "c": 0.21179,
    "h": 293.6
  },
  "luminance": 0.13383
}

Semantic roles & 50–950 ramp

primary
#7846D9
secondary
#C7DC9F
accent
#E93FAF
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7846D9

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

Preview Lab → · Contrast checker → · Palette generator →

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