#7847BA#7847BA

#7847BA is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.3% C 0.174 H 299.9°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#7847BA
RGBrgb(120, 71, 186)
HSLhsl(266, 45%, 50%)
HSVhsv(266, 62%, 73%)
CMYKcmyk(35.5%, 61.8%, 0%, 27.1%)
CIE-LABlab(41.29, 44.71, -53.21)
CIE-LCHlch(41.29, 69.50, 310.04°)
OKLaboklab(51.31% 0.0869 -0.1511)
OKLCHoklch(51.31% 0.174 299.9)
XYZxyz(18.8597, 12.0446, 47.7761)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7847BA #89BA47
analogous
#474FBA #7847BA #B147BA
triadic
#7847BA #BA7847 #47BA78
tetradic
#7847BA #BA474F #89BA47 #47BAB1
square
#7847BA #BA474F #89BA47 #47BAB1
split-complementary
#7847BA #BAB147 #4FBA47
monochromatic
#3F2562 #5B358E #7847BA #9974CB #B9A0DB

Accessibility & contrast

On white

6.16
#7847BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7847BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7847BA
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7847BA#FFFFFF#000000##FFFFFF
##7847BA1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#1B61B7
Tritanopia (blue-blind)
#6A607A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7847ba;
/* rgb */ color: rgb(120, 71, 186);
/* oklch */ color: oklch(51.3% 0.174 299.9);
Tailwind
colors: {
  custom: {
    50: '#a37dcf',
    500: '#7847ba',
    950: '#000000',
  },
}
SCSS
$custom: #7847ba;
$custom-light: #a37dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7847ba",
  "rgb": {
    "r": 120,
    "g": 71,
    "b": 186
  },
  "hsl": {
    "h": 265.565,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51305,
    "c": 0.17431,
    "h": 299.9
  },
  "luminance": 0.12045
}

Semantic roles & 50–950 ramp

primary
#7847BA
secondary
#B2C895
accent
#D5539E
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7847BA

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

Preview Lab → · Contrast checker → · Palette generator →

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