#7854E8#7854E8

#7854E8 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.6% C 0.212 H 289.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7854E8
RGBrgb(120, 84, 232)
HSLhsl(255, 76%, 62%)
HSVhsv(255, 64%, 91%)
CMYKcmyk(48.3%, 63.8%, 0%, 9%)
CIE-LABlab(47.18, 50.05, -70.10)
CIE-LCHlch(47.18, 86.13, 305.53°)
OKLaboklab(56.61% 0.069 -0.2008)
OKLCHoklch(56.61% 0.212 289)
XYZxyz(25.4773, 16.1588, 78.1048)
Luminance0.1616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7854E8 #C4E854
analogous
#547AE8 #7854E8 #C254E8
triadic
#7854E8 #E87854 #54E878
tetradic
#7854E8 #E8547A #C4E854 #54E8C2
square
#7854E8 #E8547A #C4E854 #54E8C2
split-complementary
#7854E8 #E8C254 #7AE854
monochromatic
#3B17AB #4D1EE1 #7854E8 #A38AEF #CDC0F7

Accessibility & contrast

On white

4.96
#7854E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7854E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7854E8
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7854E8#FFFFFF#000000##FFFFFF
##7854E81.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073ED
Deuteranopia (green-blind)
#006CE5
Tritanopia (blue-blind)
#527897
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7854e8;
/* rgb */ color: rgb(120, 84, 232);
/* oklch */ color: oklch(56.6% 0.212 289.0);
Tailwind
colors: {
  custom: {
    50: '#a786f0',
    500: '#7854e8',
    950: '#000000',
  },
}
SCSS
$custom: #7854e8;
$custom-light: #a786f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7854e8",
  "rgb": {
    "r": 120,
    "g": 84,
    "b": 232
  },
  "hsl": {
    "h": 254.595,
    "s": 76.289,
    "l": 61.961
  },
  "oklch": {
    "l": 0.56612,
    "c": 0.21233,
    "h": 289
  },
  "luminance": 0.1616
}

Semantic roles & 50–950 ramp

primary
#7854E8
secondary
#DAE7B1
accent
#D80DA7
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7854E8

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

Preview Lab → · Contrast checker → · Palette generator →

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