#7847CD#7847CD

#7847CD is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.7% C 0.197 H 295.7°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#7847CD
RGBrgb(120, 71, 205)
HSLhsl(262, 57%, 54%)
HSVhsv(262, 65%, 80%)
CMYKcmyk(41.5%, 65.4%, 0%, 19.6%)
CIE-LABlab(42.62, 49.66, -62.10)
CIE-LCHlch(42.62, 79.51, 308.65°)
OKLaboklab(52.69% 0.0853 -0.1773)
OKLCHoklch(52.69% 0.197 295.7)
XYZxyz(21.0155, 12.9069, 59.1298)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7847CD #9CCD47
analogous
#4759CD #7847CD #BB47CD
triadic
#7847CD #CD7847 #47CD78
tetradic
#7847CD #CD4759 #9CCD47 #47CDBB
square
#7847CD #CD4759 #9CCD47 #47CDBB
split-complementary
#7847CD #CDBB47 #59CD47
monochromatic
#412179 #5B2EA9 #7847CD #9B77DA #BFA7E7

Accessibility & contrast

On white

5.86
#7847CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7847CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7847CD
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7847CD#FFFFFF#000000##FFFFFF
##7847CD1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#0063CA
Tritanopia (blue-blind)
#626684
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7847cd;
/* rgb */ color: rgb(120, 71, 205);
/* oklch */ color: oklch(52.7% 0.197 295.7);
Tailwind
colors: {
  custom: {
    50: '#a57ddd',
    500: '#7847cd',
    950: '#000000',
  },
}
SCSS
$custom: #7847cd;
$custom-light: #a57ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#7847cd",
  "rgb": {
    "r": 120,
    "g": 71,
    "b": 205
  },
  "hsl": {
    "h": 261.94,
    "s": 57.265,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52694,
    "c": 0.1967,
    "h": 295.7
  },
  "luminance": 0.12907
}

Semantic roles & 50–950 ramp

primary
#7847CD
secondary
#C0D49B
accent
#E147A8
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7847CD

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

Preview Lab → · Contrast checker → · Palette generator →

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