#7654CB#7654CB

#7654CB is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.3% C 0.177 H 292.7°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7654CB
RGBrgb(118, 84, 203)
HSLhsl(257, 53%, 56%)
HSVhsv(257, 59%, 80%)
CMYKcmyk(41.9%, 58.6%, 0%, 20.4%)
CIE-LABlab(44.95, 41.56, -57.19)
CIE-LCHlch(44.95, 70.70, 306.01°)
OKLaboklab(54.29% 0.0682 -0.1629)
OKLCHoklch(54.29% 0.177 292.7)
XYZxyz(21.4181, 14.5034, 58.1593)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7654CB #A9CB54
analogous
#546ECB #7654CB #B254CB
triadic
#7654CB #CB7654 #54CB76
tetradic
#7654CB #CB546E #A9CB54 #54CBB2
square
#7654CB #CB546E #A9CB54 #54CBB2
split-complementary
#7654CB #CBB254 #6ECB54
monochromatic
#3F267E #5735AD #7654CB #9C83D9 #C1B2E8

Accessibility & contrast

On white

5.38
#7654CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7654CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7654CB
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7654CB#FFFFFF#000000##FFFFFF
##7654CB1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#1368C8
Tritanopia (blue-blind)
#5F6E87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7654cb;
/* rgb */ color: rgb(118, 84, 203);
/* oklch */ color: oklch(54.3% 0.177 292.7);
Tailwind
colors: {
  custom: {
    50: '#a385dc',
    500: '#7654cb',
    950: '#000000',
  },
}
SCSS
$custom: #7654cb;
$custom-light: #a385dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7654cb",
  "rgb": {
    "r": 118,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 257.143,
    "s": 53.363,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54291,
    "c": 0.17663,
    "h": 292.7
  },
  "luminance": 0.14504
}

Semantic roles & 50–950 ramp

primary
#7654CB
secondary
#C8D6A5
accent
#DD4BB3
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7654CB

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

Preview Lab → · Contrast checker → · Palette generator →

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