#7654F2#7654F2

#7654F2 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.2% C 0.224 H 286.9°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7654F2
RGBrgb(118, 84, 242)
HSLhsl(253, 86%, 64%)
HSVhsv(253, 65%, 95%)
CMYKcmyk(51.2%, 65.3%, 0%, 5.1%)
CIE-LABlab(47.75, 52.51, -74.80)
CIE-LCHlch(47.75, 91.39, 305.07°)
OKLaboklab(57.22% 0.0652 -0.2147)
OKLCHoklch(57.22% 0.224 286.9)
XYZxyz(26.6638, 16.6017, 85.7867)
Luminance0.1660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7654F2 #D0F254
analogous
#5481F2 #7654F2 #C554F2
triadic
#7654F2 #F27654 #54F276
tetradic
#7654F2 #F25481 #D0F254 #54F2C5
square
#7654F2 #F25481 #D0F254 #54F2C5
split-complementary
#7654F2 #F2C554 #81F254
monochromatic
#340EBD #481BEE #7654F2 #A48DF6 #D1C6FB

Accessibility & contrast

On white

4.86
#7654F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#7654F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7654F2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7654F2#FFFFFF#000000##FFFFFF
##7654F21.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#467B9C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7654f2;
/* rgb */ color: rgb(118, 84, 242);
/* oklch */ color: oklch(57.2% 0.224 286.9);
Tailwind
colors: {
  custom: {
    50: '#a786f7',
    500: '#7654f2',
    950: '#000000',
  },
}
SCSS
$custom: #7654f2;
$custom-light: #a786f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7654f2",
  "rgb": {
    "r": 118,
    "g": 84,
    "b": 242
  },
  "hsl": {
    "h": 252.911,
    "s": 85.87,
    "l": 63.922
  },
  "oklch": {
    "l": 0.57217,
    "c": 0.22437,
    "h": 286.9
  },
  "luminance": 0.16603
}

Semantic roles & 50–950 ramp

primary
#7654F2
secondary
#E1EDB5
accent
#E203B2
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7654F2

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

Preview Lab → · Contrast checker → · Palette generator →

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