#654CD4#654CD4

#654CD4 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.2% C 0.199 H 285.7°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#654CD4
RGBrgb(101, 76, 212)
HSLhsl(251, 61%, 56%)
HSVhsv(251, 64%, 83%)
CMYKcmyk(52.4%, 64.2%, 0%, 16.9%)
CIE-LABlab(42.29, 45.31, -66.75)
CIE-LCHlch(42.29, 80.68, 304.17°)
OKLaboklab(52.18% 0.0537 -0.1916)
OKLCHoklch(52.18% 0.199 285.7)
XYZxyz(19.8314, 12.6880, 63.6787)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#654CD4 #BBD44C
analogous
#4C77D4 #654CD4 #A94CD4
triadic
#654CD4 #D4654C #4CD465
tetradic
#654CD4 #D44C77 #BBD44C #4CD4A9
square
#654CD4 #D44C77 #BBD44C #4CD4A9
split-complementary
#654CD4 #D4A94C #77D44C
monochromatic
#332086 #452CB7 #654CD4 #8F7DE0 #BAAFEC

Accessibility & contrast

On white

5.94
#654CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#654CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #654CD4
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##654CD4#FFFFFF#000000##FFFFFF
##654CD41.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D8
Deuteranopia (green-blind)
#0060D1
Tritanopia (blue-blind)
#386D89
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #654cd4;
/* rgb */ color: rgb(101, 76, 212);
/* oklch */ color: oklch(52.2% 0.199 285.7);
Tailwind
colors: {
  custom: {
    50: '#9a7fe2',
    500: '#654cd4',
    950: '#000000',
  },
}
SCSS
$custom: #654cd4;
$custom-light: #9a7fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#654cd4",
  "rgb": {
    "r": 101,
    "g": 76,
    "b": 212
  },
  "hsl": {
    "h": 251.029,
    "s": 61.261,
    "l": 56.471
  },
  "oklch": {
    "l": 0.52177,
    "c": 0.19895,
    "h": 285.7
  },
  "luminance": 0.12689
}

Semantic roles & 50–950 ramp

primary
#654CD4
secondary
#D0DAA2
accent
#E443C7
background
#FAF7FE
surface
#F3EEFC
border
#CDC9D5
text
#0F0A15
muted
#7F7C84

Preview Lab

Preview with #654CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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