#7854C8#7854C8

#7854C8 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.3% C 0.173 H 294.2°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7854C8
RGBrgb(120, 84, 200)
HSLhsl(259, 51%, 56%)
HSVhsv(259, 58%, 78%)
CMYKcmyk(40%, 58%, 0%, 21.6%)
CIE-LABlab(44.95, 41.19, -55.45)
CIE-LCHlch(44.95, 69.08, 306.60°)
OKLaboklab(54.28% 0.0709 -0.1577)
OKLCHoklch(54.28% 0.173 294.2)
XYZxyz(21.3386, 14.5033, 56.3075)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7854C8 #A4C854
analogous
#546AC8 #7854C8 #B254C8
triadic
#7854C8 #C87854 #54C878
tetradic
#7854C8 #C8546A #A4C854 #54C8B2
square
#7854C8 #C8546A #A4C854 #54C8B2
split-complementary
#7854C8 #C8B254 #6AC854
monochromatic
#41277A #5A36A9 #7854C8 #9D82D7 #C1B1E6

Accessibility & contrast

On white

5.38
#7854C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7854C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7854C8
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7854C8#FFFFFF#000000##FFFFFF
##7854C81.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C6CCC
Deuteranopia (green-blind)
#1F68C5
Tritanopia (blue-blind)
#636D86
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7854c8;
/* rgb */ color: rgb(120, 84, 200);
/* oklch */ color: oklch(54.3% 0.173 294.2);
Tailwind
colors: {
  custom: {
    50: '#a485d9',
    500: '#7854c8',
    950: '#000000',
  },
}
SCSS
$custom: #7854c8;
$custom-light: #a485d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7854c8",
  "rgb": {
    "r": 120,
    "g": 84,
    "b": 200
  },
  "hsl": {
    "h": 258.621,
    "s": 51.327,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54275,
    "c": 0.17294,
    "h": 294.2
  },
  "luminance": 0.14504
}

Semantic roles & 50–950 ramp

primary
#7854C8
secondary
#C5D4A4
accent
#DB4DAF
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7854C8

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

Preview Lab → · Contrast checker → · Palette generator →

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