#7854EF#7854EF

#7854EF is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.2% C 0.221 H 288.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7854EF
RGBrgb(120, 84, 239)
HSLhsl(254, 83%, 63%)
HSVhsv(254, 65%, 94%)
CMYKcmyk(49.8%, 64.9%, 0%, 6.3%)
CIE-LABlab(47.71, 52.01, -73.19)
CIE-LCHlch(47.71, 89.78, 305.40°)
OKLaboklab(57.16% 0.0682 -0.2099)
OKLCHoklch(57.16% 0.221 288)
XYZxyz(26.4915, 16.5645, 83.4460)
Luminance0.1657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7854EF #CBEF54
analogous
#547DEF #7854EF #C554EF
triadic
#7854EF #EF7854 #54EF78
tetradic
#7854EF #EF547D #CBEF54 #54EFC5
square
#7854EF #EF547D #CBEF54 #54EFC5
split-complementary
#7854EF #EFC554 #7DEF54
monochromatic
#3811B7 #4C1CEA #7854EF #A48CF4 #D0C4F9

Accessibility & contrast

On white

4.87
#7854EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7854EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7854EF
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7854EF#FFFFFF#000000##FFFFFF
##7854EF1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F4
Deuteranopia (green-blind)
#006DEC
Tritanopia (blue-blind)
#4D7A9A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7854ef;
/* rgb */ color: rgb(120, 84, 239);
/* oklch */ color: oklch(57.2% 0.221 288.0);
Tailwind
colors: {
  custom: {
    50: '#a886f5',
    500: '#7854ef',
    950: '#000000',
  },
}
SCSS
$custom: #7854ef;
$custom-light: #a886f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7854ef",
  "rgb": {
    "r": 120,
    "g": 84,
    "b": 239
  },
  "hsl": {
    "h": 253.935,
    "s": 82.888,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57155,
    "c": 0.22069,
    "h": 288
  },
  "luminance": 0.16566
}

Semantic roles & 50–950 ramp

primary
#7854EF
secondary
#DEEBB4
accent
#DF06AD
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7854EF

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

Preview Lab → · Contrast checker → · Palette generator →

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