#654F97#654F97

#654F97 is a mid, moderate violet. Relative luminance 0.106; OKLCH L 48.4% C 0.114 H 296.0°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#654F97
RGBrgb(101, 79, 151)
HSLhsl(258, 31%, 45%)
HSVhsv(258, 48%, 59%)
CMYKcmyk(33.1%, 47.7%, 0%, 40.8%)
CIE-LABlab(38.89, 25.88, -36.36)
CIE-LCHlch(38.89, 44.63, 305.44°)
OKLaboklab(48.37% 0.0498 -0.1023)
OKLCHoklch(48.37% 0.114 296)
XYZxyz(13.7473, 10.5928, 30.5925)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#654F97 #81974F
analogous
#4F5D97 #654F97 #894F97
triadic
#654F97 #97654F #4F9765
tetradic
#654F97 #974F5D #81974F #4F9789
square
#654F97 #974F5D #81974F #4F9789
split-complementary
#654F97 #97894F #5D974F
monochromatic
#2F2547 #4A3A6F #654F97 #846FB4 #A798C9

Accessibility & contrast

On white

6.73
#654F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#654F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #654F97
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##654F97#FFFFFF#000000##FFFFFF
##654F971.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375C9A
Deuteranopia (green-blind)
#3C5B95
Tritanopia (blue-blind)
#5A5D6C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #654f97;
/* rgb */ color: rgb(101, 79, 151);
/* oklch */ color: oklch(48.4% 0.114 296.0);
Tailwind
colors: {
  custom: {
    50: '#9380b6',
    500: '#654f97',
    950: '#000000',
  },
}
SCSS
$custom: #654f97;
$custom-light: #9380b6;
$custom-dark: #000000;
JSON
{
  "hex": "#654f97",
  "rgb": {
    "r": 101,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 258.333,
    "s": 31.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48365,
    "c": 0.1138,
    "h": 296
  },
  "luminance": 0.10593
}

Semantic roles & 50–950 ramp

primary
#654F97
secondary
#A9B68C
accent
#C760A8
background
#F9F7FB
surface
#F1EEF6
border
#CBC9D0
text
#0D0A11
muted
#7E7C80

Preview Lab

Preview with #654F97

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

Preview Lab → · Contrast checker → · Palette generator →

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