#7854EB#7854EB

#7854EB is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 56.8% C 0.216 H 288.5°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7854EB
RGBrgb(120, 84, 235)
HSLhsl(254, 79%, 63%)
HSVhsv(254, 64%, 92%)
CMYKcmyk(48.9%, 64.3%, 0%, 7.8%)
CIE-LABlab(47.41, 50.89, -71.43)
CIE-LCHlch(47.41, 87.70, 305.47°)
OKLaboklab(56.84% 0.0687 -0.2047)
OKLCHoklch(56.84% 0.216 288.5)
XYZxyz(25.9071, 16.3307, 80.3682)
Luminance0.1633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7854EB #C7EB54
analogous
#547BEB #7854EB #C454EB
triadic
#7854EB #EB7854 #54EB78
tetradic
#7854EB #EB547B #C7EB54 #54EBC4
square
#7854EB #EB547B #C7EB54 #54EBC4
split-complementary
#7854EB #EBC454 #7BEB54
monochromatic
#3A15B0 #4D1DE5 #7854EB #A38BF1 #CFC2F8

Accessibility & contrast

On white

4.92
#7854EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#7854EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7854EB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7854EB#FFFFFF#000000##FFFFFF
##7854EB1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F0
Deuteranopia (green-blind)
#006DE8
Tritanopia (blue-blind)
#507998
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7854eb;
/* rgb */ color: rgb(120, 84, 235);
/* oklch */ color: oklch(56.8% 0.216 288.5);
Tailwind
colors: {
  custom: {
    50: '#a886f2',
    500: '#7854eb',
    950: '#000000',
  },
}
SCSS
$custom: #7854eb;
$custom-light: #a886f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7854eb",
  "rgb": {
    "r": 120,
    "g": 84,
    "b": 235
  },
  "hsl": {
    "h": 254.305,
    "s": 79.058,
    "l": 62.549
  },
  "oklch": {
    "l": 0.56843,
    "c": 0.21592,
    "h": 288.5
  },
  "luminance": 0.16332
}

Semantic roles & 50–950 ramp

primary
#7854EB
secondary
#DCE9B2
accent
#DB0AA9
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7854EB

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

Preview Lab → · Contrast checker → · Palette generator →

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