#654DC7#654DC7

#654DC7 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.3% C 0.181 H 287.2°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#654DC7
RGBrgb(101, 77, 199)
HSLhsl(252, 52%, 54%)
HSVhsv(252, 61%, 78%)
CMYKcmyk(49.2%, 61.3%, 0%, 22%)
CIE-LABlab(41.53, 40.89, -60.49)
CIE-LCHlch(41.53, 73.02, 304.06°)
OKLaboklab(51.32% 0.0537 -0.1732)
OKLCHoklch(51.32% 0.181 287.2)
XYZxyz(18.3265, 12.1971, 55.4104)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#654DC7 #AFC74D
analogous
#4D72C7 #654DC7 #A24DC7
triadic
#654DC7 #C7654D #4DC765
tetradic
#654DC7 #C74D72 #AFC74D #4DC7A2
square
#654DC7 #C74D72 #AFC74D #4DC7A2
split-complementary
#654DC7 #C7A24D #72C74D
monochromatic
#352575 #4933A3 #654DC7 #8D7CD6 #B6AAE4

Accessibility & contrast

On white

6.11
#654DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#654DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #654DC7
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##654DC7#FFFFFF#000000##FFFFFF
##654DC71.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CB
Deuteranopia (green-blind)
#005FC4
Tritanopia (blue-blind)
#436A83
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #654dc7;
/* rgb */ color: rgb(101, 77, 199);
/* oklch */ color: oklch(51.3% 0.181 287.2);
Tailwind
colors: {
  custom: {
    50: '#9880d9',
    500: '#654dc7',
    950: '#000000',
  },
}
SCSS
$custom: #654dc7;
$custom-light: #9880d9;
$custom-dark: #000000;
JSON
{
  "hex": "#654dc7",
  "rgb": {
    "r": 101,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 251.803,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51316,
    "c": 0.18131,
    "h": 287.2
  },
  "luminance": 0.12198
}

Semantic roles & 50–950 ramp

primary
#654DC7
secondary
#C8D29E
accent
#DC4CBF
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #654DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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