#7854EC#7854EC

#7854EC is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 56.9% C 0.217 H 288.4°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7854EC
RGBrgb(120, 84, 236)
HSLhsl(254, 80%, 63%)
HSVhsv(254, 64%, 93%)
CMYKcmyk(49.2%, 64.4%, 0%, 7.5%)
CIE-LABlab(47.48, 51.17, -71.87)
CIE-LCHlch(47.48, 88.22, 305.45°)
OKLaboklab(56.92% 0.0686 -0.206)
OKLCHoklch(56.92% 0.217 288.4)
XYZxyz(26.0520, 16.3887, 81.1312)
Luminance0.1639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7854EC #C8EC54
analogous
#547CEC #7854EC #C454EC
triadic
#7854EC #EC7854 #54EC78
tetradic
#7854EC #EC547C #C8EC54 #54ECC4
square
#7854EC #EC547C #C8EC54 #54ECC4
split-complementary
#7854EC #ECC454 #7CEC54
monochromatic
#3914B2 #4D1DE6 #7854EC #A38BF2 #CFC2F8

Accessibility & contrast

On white

4.91
#7854EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#7854EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7854EC
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7854EC#FFFFFF#000000##FFFFFF
##7854EC1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F1
Deuteranopia (green-blind)
#006DE9
Tritanopia (blue-blind)
#4F7999
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7854ec;
/* rgb */ color: rgb(120, 84, 236);
/* oklch */ color: oklch(56.9% 0.217 288.4);
Tailwind
colors: {
  custom: {
    50: '#a886f3',
    500: '#7854ec',
    950: '#000000',
  },
}
SCSS
$custom: #7854ec;
$custom-light: #a886f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7854ec",
  "rgb": {
    "r": 120,
    "g": 84,
    "b": 236
  },
  "hsl": {
    "h": 254.211,
    "s": 80,
    "l": 62.745
  },
  "oklch": {
    "l": 0.56921,
    "c": 0.21712,
    "h": 288.4
  },
  "luminance": 0.1639
}

Semantic roles & 50–950 ramp

primary
#7854EC
secondary
#DCE9B2
accent
#DC09AA
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7854EC

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

Preview Lab → · Contrast checker → · Palette generator →

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