#654DB7#654DB7

#654DB7 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.1% C 0.161 H 289.8°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#654DB7
RGBrgb(101, 77, 183)
HSLhsl(254, 42%, 51%)
HSVhsv(254, 58%, 72%)
CMYKcmyk(44.8%, 57.9%, 0%, 28.2%)
CIE-LABlab(40.40, 36.20, -52.98)
CIE-LCHlch(40.40, 64.16, 304.34°)
OKLaboklab(50.13% 0.0543 -0.1511)
OKLCHoklch(50.13% 0.161 289.8)
XYZxyz(16.5655, 11.4928, 46.1361)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#654DB7 #9FB74D
analogous
#4D6AB7 #654DB7 #9A4DB7
triadic
#654DB7 #B7654D #4DB765
tetradic
#654DB7 #B74D6A #9FB74D #4DB79A
square
#654DB7 #B74D6A #9FB74D #4DB79A
split-complementary
#654DB7 #B79A4D #6AB74D
monochromatic
#352862 #4C398E #654DB7 #8B79C9 #B0A4DA

Accessibility & contrast

On white

6.37
#654DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#654DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #654DB7
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##654DB7#FFFFFF#000000##FFFFFF
##654DB71.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0361BB
Deuteranopia (green-blind)
#0C5DB5
Tritanopia (blue-blind)
#4C647A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #654db7;
/* rgb */ color: rgb(101, 77, 183);
/* oklch */ color: oklch(50.1% 0.161 289.8);
Tailwind
colors: {
  custom: {
    50: '#9680cd',
    500: '#654db7',
    950: '#000000',
  },
}
SCSS
$custom: #654db7;
$custom-light: #9680cd;
$custom-dark: #000000;
JSON
{
  "hex": "#654db7",
  "rgb": {
    "r": 101,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 253.585,
    "s": 42.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.5013,
    "c": 0.16054,
    "h": 289.8
  },
  "luminance": 0.11493
}

Semantic roles & 50–950 ramp

primary
#654DB7
secondary
#BDC798
accent
#D256B6
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0A13
muted
#7E7C82

Preview Lab

Preview with #654DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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