#654CC7#654CC7

#654CC7 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.2% C 0.183 H 287.5°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#654CC7
RGBrgb(101, 76, 199)
HSLhsl(252, 52%, 54%)
HSVhsv(252, 62%, 78%)
CMYKcmyk(49.2%, 61.8%, 0%, 22%)
CIE-LABlab(41.31, 41.47, -60.85)
CIE-LCHlch(41.31, 73.64, 304.28°)
OKLaboklab(51.16% 0.0548 -0.1742)
OKLCHoklch(51.16% 0.183 287.5)
XYZxyz(18.2571, 12.0583, 55.3873)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#654CC7 #AEC74C
analogous
#4C71C7 #654CC7 #A34CC7
triadic
#654CC7 #C7654C #4CC765
tetradic
#654CC7 #C74C71 #AEC74C #4CC7A3
square
#654CC7 #C74C71 #AEC74C #4CC7A3
split-complementary
#654CC7 #C7A34C #71C74C
monochromatic
#352474 #4A33A3 #654CC7 #8D7BD6 #B5A9E4

Accessibility & contrast

On white

6.16
#654CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#654CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #654CC7
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##654CC7#FFFFFF#000000##FFFFFF
##654CC71.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#005EC4
Tritanopia (blue-blind)
#436982
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #654cc7;
/* rgb */ color: rgb(101, 76, 199);
/* oklch */ color: oklch(51.2% 0.183 287.5);
Tailwind
colors: {
  custom: {
    50: '#997fd9',
    500: '#654cc7',
    950: '#000000',
  },
}
SCSS
$custom: #654cc7;
$custom-light: #997fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#654cc7",
  "rgb": {
    "r": 101,
    "g": 76,
    "b": 199
  },
  "hsl": {
    "h": 252.195,
    "s": 52.34,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51156,
    "c": 0.18262,
    "h": 287.5
  },
  "luminance": 0.12059
}

Semantic roles & 50–950 ramp

primary
#654CC7
secondary
#C7D29D
accent
#DC4CBF
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0A15
muted
#7E7C83

Preview Lab

Preview with #654CC7

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

Preview Lab → · Contrast checker → · Palette generator →

#654CC7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva