#7654CC#7654CC

#7654CC is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.4% C 0.178 H 292.5°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7654CC
RGBrgb(118, 84, 204)
HSLhsl(257, 54%, 56%)
HSVhsv(257, 59%, 80%)
CMYKcmyk(42.2%, 58.8%, 0%, 20%)
CIE-LABlab(45.01, 41.84, -57.66)
CIE-LCHlch(45.01, 71.24, 305.97°)
OKLaboklab(54.36% 0.0682 -0.1643)
OKLCHoklch(54.36% 0.178 292.5)
XYZxyz(21.5377, 14.5512, 58.7889)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7654CC #AACC54
analogous
#546ECC #7654CC #B254CC
triadic
#7654CC #CC7654 #54CC76
tetradic
#7654CC #CC546E #AACC54 #54CCB2
square
#7654CC #CC546E #AACC54 #54CCB2
split-complementary
#7654CC #CCB254 #6ECC54
monochromatic
#3F2680 #5734AF #7654CC #9C83DA #C2B2E8

Accessibility & contrast

On white

5.37
#7654CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#7654CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7654CC
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7654CC#FFFFFF#000000##FFFFFF
##7654CC1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#1068C9
Tritanopia (blue-blind)
#5E6F88
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7654cc;
/* rgb */ color: rgb(118, 84, 204);
/* oklch */ color: oklch(54.4% 0.178 292.5);
Tailwind
colors: {
  custom: {
    50: '#a385dc',
    500: '#7654cc',
    950: '#000000',
  },
}
SCSS
$custom: #7654cc;
$custom-light: #a385dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7654cc",
  "rgb": {
    "r": 118,
    "g": 84,
    "b": 204
  },
  "hsl": {
    "h": 257,
    "s": 54.054,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54362,
    "c": 0.17789,
    "h": 292.5
  },
  "luminance": 0.14552
}

Semantic roles & 50–950 ramp

primary
#7654CC
secondary
#C9D7A5
accent
#DD4AB4
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7654CC

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

Preview Lab → · Contrast checker → · Palette generator →

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