#7847CF#7847CF

#7847CF is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.8% C 0.199 H 295.3°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#7847CF
RGBrgb(120, 71, 207)
HSLhsl(262, 59%, 55%)
HSVhsv(262, 66%, 81%)
CMYKcmyk(42%, 65.7%, 0%, 18.8%)
CIE-LABlab(42.77, 50.19, -63.01)
CIE-LCHlch(42.77, 80.56, 308.54°)
OKLaboklab(52.85% 0.085 -0.18)
OKLCHoklch(52.85% 0.199 295.3)
XYZxyz(21.2585, 13.0040, 60.4094)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7847CF #9ECF47
analogous
#475ACF #7847CF #BC47CF
triadic
#7847CF #CF7847 #47CF78
tetradic
#7847CF #CF475A #9ECF47 #47CFBC
square
#7847CF #CF475A #9ECF47 #47CFBC
split-complementary
#7847CF #CFBC47 #5ACF47
monochromatic
#41207B #5B2DAC #7847CF #9C78DC #BFA8E8

Accessibility & contrast

On white

5.83
#7847CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#7847CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7847CF
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7847CF#FFFFFF#000000##FFFFFF
##7847CF1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D3
Deuteranopia (green-blind)
#0063CC
Tritanopia (blue-blind)
#616785
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7847cf;
/* rgb */ color: rgb(120, 71, 207);
/* oklch */ color: oklch(52.8% 0.199 295.3);
Tailwind
colors: {
  custom: {
    50: '#a57ddf',
    500: '#7847cf',
    950: '#000000',
  },
}
SCSS
$custom: #7847cf;
$custom-light: #a57ddf;
$custom-dark: #000000;
JSON
{
  "hex": "#7847cf",
  "rgb": {
    "r": 120,
    "g": 71,
    "b": 207
  },
  "hsl": {
    "h": 261.618,
    "s": 58.621,
    "l": 54.51
  },
  "oklch": {
    "l": 0.52846,
    "c": 0.19903,
    "h": 295.3
  },
  "luminance": 0.13005
}

Semantic roles & 50–950 ramp

primary
#7847CF
secondary
#C1D69C
accent
#E246AA
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7847CF

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

Preview Lab → · Contrast checker → · Palette generator →

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