#654DC4#654DC4

#654DC4 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.1% C 0.177 H 287.7°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#654DC4
RGBrgb(101, 77, 196)
HSLhsl(252, 50%, 54%)
HSVhsv(252, 61%, 77%)
CMYKcmyk(48.5%, 60.7%, 0%, 23.1%)
CIE-LABlab(41.31, 40.01, -59.10)
CIE-LCHlch(41.31, 71.37, 304.10°)
OKLaboklab(51.09% 0.0539 -0.1691)
OKLCHoklch(51.09% 0.177 287.7)
XYZxyz(17.9816, 12.0592, 53.5940)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#654DC4 #ACC44D
analogous
#4D70C4 #654DC4 #A04DC4
triadic
#654DC4 #C4654D #4DC465
tetradic
#654DC4 #C44D70 #ACC44D #4DC4A0
square
#654DC4 #C44D70 #ACC44D #4DC4A0
split-complementary
#654DC4 #C4A04D #70C44D
monochromatic
#352571 #4A359F #654DC4 #8D7BD3 #B5A9E2

Accessibility & contrast

On white

6.15
#654DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #654DC4
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##654DC4#FFFFFF#000000##FFFFFF
##654DC41.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #654dc4;
/* rgb */ color: rgb(101, 77, 196);
/* oklch */ color: oklch(51.1% 0.177 287.7);
Tailwind
colors: {
  custom: {
    50: '#9880d7',
    500: '#654dc4',
    950: '#000000',
  },
}
SCSS
$custom: #654dc4;
$custom-light: #9880d7;
$custom-dark: #000000;
JSON
{
  "hex": "#654dc4",
  "rgb": {
    "r": 101,
    "g": 77,
    "b": 196
  },
  "hsl": {
    "h": 252.101,
    "s": 50.211,
    "l": 53.529
  },
  "oklch": {
    "l": 0.51088,
    "c": 0.17746,
    "h": 287.7
  },
  "luminance": 0.1206
}

Semantic roles & 50–950 ramp

primary
#654DC4
secondary
#C6D09D
accent
#DA4EBE
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #654DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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