#654CC5#654CC5

#654CC5 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.0% C 0.180 H 287.8°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#654CC5
RGBrgb(101, 76, 197)
HSLhsl(252, 51%, 54%)
HSVhsv(252, 61%, 77%)
CMYKcmyk(48.7%, 61.4%, 0%, 22.7%)
CIE-LABlab(41.16, 40.88, -59.92)
CIE-LCHlch(41.16, 72.54, 304.30°)
OKLaboklab(51% 0.0549 -0.1715)
OKLCHoklch(51% 0.18 287.8)
XYZxyz(18.0264, 11.9660, 54.1723)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#654CC5 #ACC54C
analogous
#4C6FC5 #654CC5 #A14CC5
triadic
#654CC5 #C5654C #4CC565
tetradic
#654CC5 #C54C6F #ACC54C #4CC5A1
square
#654CC5 #C54C6F #ACC54C #4CC5A1
split-complementary
#654CC5 #C5A14C #6FC54C
monochromatic
#352572 #4A34A0 #654CC5 #8D7AD4 #B5A8E3

Accessibility & contrast

On white

6.19
#654CC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#654CC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #654CC5
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##654CC5#FFFFFF#000000##FFFFFF
##654CC51.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C9
Deuteranopia (green-blind)
#005EC2
Tritanopia (blue-blind)
#446881
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #654cc5;
/* rgb */ color: rgb(101, 76, 197);
/* oklch */ color: oklch(51.0% 0.180 287.8);
Tailwind
colors: {
  custom: {
    50: '#987fd7',
    500: '#654cc5',
    950: '#000000',
  },
}
SCSS
$custom: #654cc5;
$custom-light: #987fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#654cc5",
  "rgb": {
    "r": 101,
    "g": 76,
    "b": 197
  },
  "hsl": {
    "h": 252.397,
    "s": 51.055,
    "l": 53.529
  },
  "oklch": {
    "l": 0.51003,
    "c": 0.18007,
    "h": 287.8
  },
  "luminance": 0.11967
}

Semantic roles & 50–950 ramp

primary
#654CC5
secondary
#C6D09C
accent
#DB4DBD
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #654CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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