#7654D4#7654D4

#7654D4 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.9% C 0.188 H 291.2°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#7654D4
RGBrgb(118, 84, 212)
HSLhsl(256, 60%, 58%)
HSVhsv(256, 60%, 83%)
CMYKcmyk(44.3%, 60.4%, 0%, 16.9%)
CIE-LABlab(45.56, 44.06, -61.37)
CIE-LCHlch(45.56, 75.55, 305.68°)
OKLaboklab(54.93% 0.0679 -0.1752)
OKLCHoklch(54.93% 0.188 291.2)
XYZxyz(22.5219, 14.9449, 63.9726)
Luminance0.1495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7654D4 #B2D454
analogous
#5472D4 #7654D4 #B654D4
triadic
#7654D4 #D47654 #54D476
tetradic
#7654D4 #D45472 #B2D454 #54D4B6
square
#7654D4 #D45472 #B2D454 #54D4B6
split-complementary
#7654D4 #D4B654 #72D454
monochromatic
#3E238B #542FBC #7654D4 #9D85E0 #C4B6ED

Accessibility & contrast

On white

5.26
#7654D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#7654D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7654D4
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7654D4#FFFFFF#000000##FFFFFF
##7654D41.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#0069D1
Tritanopia (blue-blind)
#5A718C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7654d4;
/* rgb */ color: rgb(118, 84, 212);
/* oklch */ color: oklch(54.9% 0.188 291.2);
Tailwind
colors: {
  custom: {
    50: '#a485e2',
    500: '#7654d4',
    950: '#000000',
  },
}
SCSS
$custom: #7654d4;
$custom-light: #a485e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7654d4",
  "rgb": {
    "r": 118,
    "g": 84,
    "b": 212
  },
  "hsl": {
    "h": 255.938,
    "s": 59.813,
    "l": 58.039
  },
  "oklch": {
    "l": 0.54934,
    "c": 0.1879,
    "h": 291.2
  },
  "luminance": 0.14946
}

Semantic roles & 50–950 ramp

primary
#7654D4
secondary
#CEDBA8
accent
#E345B9
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7654D4

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

Preview Lab → · Contrast checker → · Palette generator →

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