#7847C5#7847C5

#7847C5 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.1% C 0.187 H 297.4°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#7847C5
RGBrgb(120, 71, 197)
HSLhsl(263, 52%, 53%)
HSVhsv(263, 64%, 77%)
CMYKcmyk(39.1%, 64%, 0%, 22.7%)
CIE-LABlab(42.05, 47.56, -58.40)
CIE-LCHlch(42.05, 75.32, 309.16°)
OKLaboklab(52.1% 0.0861 -0.1664)
OKLCHoklch(52.1% 0.187 297.4)
XYZxyz(20.0744, 12.5304, 54.1735)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7847C5 #94C547
analogous
#4755C5 #7847C5 #B747C5
triadic
#7847C5 #C57847 #47C578
tetradic
#7847C5 #C54755 #94C547 #47C5B7
square
#7847C5 #C54755 #94C547 #47C5B7
split-complementary
#7847C5 #C5B747 #55C547
monochromatic
#40236F #5B329D #7847C5 #9A76D4 #BCA4E2

Accessibility & contrast

On white

5.99
#7847C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7847C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7847C5
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7847C5#FFFFFF#000000##FFFFFF
##7847C51.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C9
Deuteranopia (green-blind)
#0062C2
Tritanopia (blue-blind)
#656480
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7847c5;
/* rgb */ color: rgb(120, 71, 197);
/* oklch */ color: oklch(52.1% 0.187 297.4);
Tailwind
colors: {
  custom: {
    50: '#a47dd7',
    500: '#7847c5',
    950: '#000000',
  },
}
SCSS
$custom: #7847c5;
$custom-light: #a47dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7847c5",
  "rgb": {
    "r": 120,
    "g": 71,
    "b": 197
  },
  "hsl": {
    "h": 263.333,
    "s": 52.066,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52097,
    "c": 0.18733,
    "h": 297.4
  },
  "luminance": 0.12531
}

Semantic roles & 50–950 ramp

primary
#7847C5
secondary
#BACF99
accent
#DC4CA4
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7847C5

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

Preview Lab → · Contrast checker → · Palette generator →

#7847C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva