#7847DB#7847DB

#7847DB is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 53.8% C 0.213 H 293.1°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#7847DB
RGBrgb(120, 71, 219)
HSLhsl(260, 67%, 57%)
HSVhsv(260, 68%, 86%)
CMYKcmyk(45.2%, 67.6%, 0%, 14.1%)
CIE-LABlab(43.67, 53.38, -68.43)
CIE-LCHlch(43.67, 86.79, 307.95°)
OKLaboklab(53.78% 0.0834 -0.1959)
OKLCHoklch(53.78% 0.213 293.1)
XYZxyz(22.7816, 13.6133, 68.4314)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7847DB #AADB47
analogous
#4760DB #7847DB #C247DB
triadic
#7847DB #DB7847 #47DB78
tetradic
#7847DB #DB4760 #AADB47 #47DBC2
square
#7847DB #DB4760 #AADB47 #47DBC2
split-complementary
#7847DB #DBC247 #60DB47
monochromatic
#411B8C #5825BF #7847DB #9E7AE5 #C3ADEF

Accessibility & contrast

On white

5.64
#7847DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#7847DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7847DB
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7847DB#FFFFFF#000000##FFFFFF
##7847DB1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DF
Deuteranopia (green-blind)
#0064D8
Tritanopia (blue-blind)
#5B6B8B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7847db;
/* rgb */ color: rgb(120, 71, 219);
/* oklch */ color: oklch(53.8% 0.213 293.1);
Tailwind
colors: {
  custom: {
    50: '#a77ee7',
    500: '#7847db',
    950: '#000000',
  },
}
SCSS
$custom: #7847db;
$custom-light: #a77ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#7847db",
  "rgb": {
    "r": 120,
    "g": 71,
    "b": 219
  },
  "hsl": {
    "h": 259.865,
    "s": 67.273,
    "l": 56.863
  },
  "oklch": {
    "l": 0.53778,
    "c": 0.21289,
    "h": 293.1
  },
  "luminance": 0.13614
}

Semantic roles & 50–950 ramp

primary
#7847DB
secondary
#C9DDA1
accent
#EA3EB1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7847DB

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

Preview Lab → · Contrast checker → · Palette generator →

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