#7654E2#7654E2

#7654E2 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.0% C 0.205 H 289.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7654E2
RGBrgb(118, 84, 226)
HSLhsl(254, 71%, 61%)
HSVhsv(254, 63%, 89%)
CMYKcmyk(47.8%, 62.8%, 0%, 11.4%)
CIE-LABlab(46.55, 47.99, -67.73)
CIE-LCHlch(46.55, 83.01, 305.32°)
OKLaboklab(55.97% 0.0669 -0.1939)
OKLCHoklch(55.97% 0.205 289)
XYZxyz(24.3651, 15.6822, 73.6799)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7654E2 #C0E254
analogous
#5479E2 #7654E2 #BD54E2
triadic
#7654E2 #E27654 #54E276
tetradic
#7654E2 #E25479 #C0E254 #54E2BD
square
#7654E2 #E25479 #C0E254 #54E2BD
split-complementary
#7654E2 #E2BD54 #79E254
monochromatic
#3B1BA0 #4E24D5 #7654E2 #A088EB #CABDF4

Accessibility & contrast

On white

5.08
#7654E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#7654E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7654E2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7654E2#FFFFFF#000000##FFFFFF
##7654E21.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E6
Deuteranopia (green-blind)
#006BDF
Tritanopia (blue-blind)
#527693
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7654e2;
/* rgb */ color: rgb(118, 84, 226);
/* oklch */ color: oklch(56.0% 0.205 289.0);
Tailwind
colors: {
  custom: {
    50: '#a586ec',
    500: '#7654e2',
    950: '#000000',
  },
}
SCSS
$custom: #7654e2;
$custom-light: #a586ec;
$custom-dark: #000000;
JSON
{
  "hex": "#7654e2",
  "rgb": {
    "r": 118,
    "g": 84,
    "b": 226
  },
  "hsl": {
    "h": 254.366,
    "s": 71,
    "l": 60.784
  },
  "oklch": {
    "l": 0.55974,
    "c": 0.20514,
    "h": 289
  },
  "luminance": 0.15683
}

Semantic roles & 50–950 ramp

primary
#7654E2
secondary
#D7E4AE
accent
#D312A5
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7654E2

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

Preview Lab → · Contrast checker → · Palette generator →

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