#7654D2#7654D2

#7654D2 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.8% C 0.185 H 291.5°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#7654D2
RGBrgb(118, 84, 210)
HSLhsl(256, 58%, 58%)
HSVhsv(256, 60%, 82%)
CMYKcmyk(43.8%, 60%, 0%, 17.6%)
CIE-LABlab(45.42, 43.51, -60.45)
CIE-LCHlch(45.42, 74.48, 305.74°)
OKLaboklab(54.79% 0.068 -0.1725)
OKLCHoklch(54.79% 0.185 291.5)
XYZxyz(22.2712, 14.8446, 62.6521)
Luminance0.1484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7654D2 #B0D254
analogous
#5471D2 #7654D2 #B554D2
triadic
#7654D2 #D27654 #54D276
tetradic
#7654D2 #D25471 #B0D254 #54D2B5
square
#7654D2 #D25471 #B0D254 #54D2B5
split-complementary
#7654D2 #D2B554 #71D254
monochromatic
#3F2488 #5531B8 #7654D2 #9D84DF #C4B5EB

Accessibility & contrast

On white

5.29
#7654D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#7654D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7654D2
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7654D2#FFFFFF#000000##FFFFFF
##7654D21.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#0069CF
Tritanopia (blue-blind)
#5B708B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7654d2;
/* rgb */ color: rgb(118, 84, 210);
/* oklch */ color: oklch(54.8% 0.185 291.5);
Tailwind
colors: {
  custom: {
    50: '#a485e1',
    500: '#7654d2',
    950: '#000000',
  },
}
SCSS
$custom: #7654d2;
$custom-light: #a485e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7654d2",
  "rgb": {
    "r": 118,
    "g": 84,
    "b": 210
  },
  "hsl": {
    "h": 256.19,
    "s": 58.333,
    "l": 57.647
  },
  "oklch": {
    "l": 0.54789,
    "c": 0.18541,
    "h": 291.5
  },
  "luminance": 0.14845
}

Semantic roles & 50–950 ramp

primary
#7654D2
secondary
#CDDAA8
accent
#E246B8
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7654D2

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

Preview Lab → · Contrast checker → · Palette generator →

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