#7854DC#7854DC

#7854DC is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.7% C 0.198 H 290.7°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7854DC
RGBrgb(120, 84, 220)
HSLhsl(256, 66%, 60%)
HSVhsv(256, 62%, 86%)
CMYKcmyk(45.5%, 61.8%, 0%, 13.7%)
CIE-LABlab(46.31, 46.70, -64.71)
CIE-LCHlch(46.31, 79.80, 305.82°)
OKLaboklab(55.71% 0.07 -0.185)
OKLCHoklch(55.71% 0.198 290.7)
XYZxyz(23.8307, 15.5002, 69.4325)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7854DC #B8DC54
analogous
#5474DC #7854DC #BC54DC
triadic
#7854DC #DC7854 #54DC78
tetradic
#7854DC #DC5474 #B8DC54 #54DCBC
square
#7854DC #DC5474 #B8DC54 #54DCBC
split-complementary
#7854DC #DCBC54 #74DC54
monochromatic
#3F1F97 #5429CA #7854DC #A087E6 #C8BAF1

Accessibility & contrast

On white

5.12
#7854DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#7854DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7854DC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7854DC#FFFFFF#000000##FFFFFF
##7854DC1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E0
Deuteranopia (green-blind)
#006BD9
Tritanopia (blue-blind)
#597490
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7854dc;
/* rgb */ color: rgb(120, 84, 220);
/* oklch */ color: oklch(55.7% 0.198 290.7);
Tailwind
colors: {
  custom: {
    50: '#a686e8',
    500: '#7854dc',
    950: '#000000',
  },
}
SCSS
$custom: #7854dc;
$custom-light: #a686e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7854dc",
  "rgb": {
    "r": 120,
    "g": 84,
    "b": 220
  },
  "hsl": {
    "h": 255.882,
    "s": 66.019,
    "l": 59.608
  },
  "oklch": {
    "l": 0.55706,
    "c": 0.19779,
    "h": 290.7
  },
  "luminance": 0.15501
}

Semantic roles & 50–950 ramp

primary
#7854DC
secondary
#D2E0AC
accent
#E93FBC
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7854DC

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

Preview Lab → · Contrast checker → · Palette generator →

#7854DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva