#654C97#654C97

#654C97 is a mid, moderate violet. Relative luminance 0.102; OKLCH L 47.8% C 0.119 H 297.1°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#654C97
RGBrgb(101, 76, 151)
HSLhsl(260, 33%, 45%)
HSVhsv(260, 50%, 59%)
CMYKcmyk(33.1%, 49.7%, 0%, 40.8%)
CIE-LABlab(38.15, 27.72, -37.54)
CIE-LCHlch(38.15, 46.66, 306.45°)
OKLaboklab(47.81% 0.054 -0.1057)
OKLCHoklch(47.81% 0.119 297.1)
XYZxyz(13.5358, 10.1698, 30.5220)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#654C97 #7E974C
analogous
#4C5997 #654C97 #8B4C97
triadic
#654C97 #97654C #4C9765
tetradic
#654C97 #974C59 #7E974C #4C978B
square
#654C97 #974C59 #7E974C #4C978B
split-complementary
#654C97 #978B4C #59974C
monochromatic
#2F2346 #4A386E #654C97 #846BB5 #A694C9

Accessibility & contrast

On white

6.92
#654C97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#654C97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #654C97
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##654C97#FFFFFF#000000##FFFFFF
##654C971.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325A9A
Deuteranopia (green-blind)
#385995
Tritanopia (blue-blind)
#5A5A6A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #654c97;
/* rgb */ color: rgb(101, 76, 151);
/* oklch */ color: oklch(47.8% 0.119 297.1);
Tailwind
colors: {
  custom: {
    50: '#937eb6',
    500: '#654c97',
    950: '#000000',
  },
}
SCSS
$custom: #654c97;
$custom-light: #937eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#654c97",
  "rgb": {
    "r": 101,
    "g": 76,
    "b": 151
  },
  "hsl": {
    "h": 260,
    "s": 33.04,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47811,
    "c": 0.11876,
    "h": 297.1
  },
  "luminance": 0.1017
}

Semantic roles & 50–950 ramp

primary
#654C97
secondary
#A7B689
accent
#C95FA6
background
#F9F7FB
surface
#F2EEF6
border
#CCC9D0
text
#0D0A11
muted
#7E7C80

Preview Lab

Preview with #654C97

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

Preview Lab → · Contrast checker → · Palette generator →

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