#7654C8#7654C8

#7654C8 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.1% C 0.173 H 293.3°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7654C8
RGBrgb(118, 84, 200)
HSLhsl(258, 51%, 56%)
HSVhsv(258, 58%, 78%)
CMYKcmyk(41%, 58%, 0%, 21.6%)
CIE-LABlab(44.75, 40.74, -55.78)
CIE-LCHlch(44.75, 69.08, 306.14°)
OKLaboklab(54.08% 0.0683 -0.1588)
OKLCHoklch(54.08% 0.173 293.3)
XYZxyz(21.0641, 14.3618, 56.2947)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7654C8 #A6C854
analogous
#546CC8 #7654C8 #B054C8
triadic
#7654C8 #C87654 #54C876
tetradic
#7654C8 #C8546C #A6C854 #54C8B0
square
#7654C8 #C8546C #A6C854 #54C8B0
split-complementary
#7654C8 #C8B054 #6CC854
monochromatic
#40277A #5836A9 #7654C8 #9B82D7 #C0B1E6

Accessibility & contrast

On white

5.42
#7654C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#7654C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7654C8
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7654C8#FFFFFF#000000##FFFFFF
##7654C81.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#086BCC
Deuteranopia (green-blind)
#1B68C5
Tritanopia (blue-blind)
#606D86
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7654c8;
/* rgb */ color: rgb(118, 84, 200);
/* oklch */ color: oklch(54.1% 0.173 293.3);
Tailwind
colors: {
  custom: {
    50: '#a385d9',
    500: '#7654c8',
    950: '#000000',
  },
}
SCSS
$custom: #7654c8;
$custom-light: #a385d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7654c8",
  "rgb": {
    "r": 118,
    "g": 84,
    "b": 200
  },
  "hsl": {
    "h": 257.586,
    "s": 51.327,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54082,
    "c": 0.17283,
    "h": 293.3
  },
  "luminance": 0.14362
}

Semantic roles & 50–950 ramp

primary
#7654C8
secondary
#C6D4A4
accent
#DB4DB1
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7654C8

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

Preview Lab → · Contrast checker → · Palette generator →

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