#654C98#654C98

#654C98 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 47.9% C 0.120 H 296.8°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#654C98
RGBrgb(101, 76, 152)
HSLhsl(260, 33%, 45%)
HSVhsv(260, 50%, 60%)
CMYKcmyk(33.6%, 50%, 0%, 40.4%)
CIE-LABlab(38.20, 28.00, -38.05)
CIE-LCHlch(38.20, 47.24, 306.34°)
OKLaboklab(47.87% 0.0542 -0.1072)
OKLCHoklch(47.87% 0.12 296.8)
XYZxyz(13.6174, 10.2024, 30.9515)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#654C98 #7F984C
analogous
#4C5998 #654C98 #8B4C98
triadic
#654C98 #98654C #4C9865
tetradic
#654C98 #984C59 #7F984C #4C988B
square
#654C98 #984C59 #7F984C #4C988B
split-complementary
#654C98 #988B4C #59984C
monochromatic
#2F2346 #4A386F #654C98 #846CB5 #A695CA

Accessibility & contrast

On white

6.91
#654C98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#654C98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #654C98
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##654C98#FFFFFF#000000##FFFFFF
##654C981.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325A9B
Deuteranopia (green-blind)
#375996
Tritanopia (blue-blind)
#5A5A6B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #654c98;
/* rgb */ color: rgb(101, 76, 152);
/* oklch */ color: oklch(47.9% 0.120 296.8);
Tailwind
colors: {
  custom: {
    50: '#937eb7',
    500: '#654c98',
    950: '#000000',
  },
}
SCSS
$custom: #654c98;
$custom-light: #937eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#654c98",
  "rgb": {
    "r": 101,
    "g": 76,
    "b": 152
  },
  "hsl": {
    "h": 259.737,
    "s": 33.333,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47873,
    "c": 0.12014,
    "h": 296.8
  },
  "luminance": 0.10203
}

Semantic roles & 50–950 ramp

primary
#654C98
secondary
#A7B68A
accent
#C95EA6
background
#F9F7FB
surface
#F2EEF6
border
#CCC9D0
text
#0D0A11
muted
#7E7C80

Preview Lab

Preview with #654C98

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

Preview Lab → · Contrast checker → · Palette generator →

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