#654D98#654D98

#654D98 is a mid, moderate violet. Relative luminance 0.103; OKLCH L 48.1% C 0.118 H 296.4°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#654D98
RGBrgb(101, 77, 152)
HSLhsl(259, 33%, 45%)
HSVhsv(259, 49%, 60%)
CMYKcmyk(33.6%, 49.3%, 0%, 40.4%)
CIE-LABlab(38.45, 27.38, -37.66)
CIE-LCHlch(38.45, 46.56, 306.02°)
OKLaboklab(48.06% 0.0528 -0.1061)
OKLCHoklch(48.06% 0.119 296.4)
XYZxyz(13.6868, 10.3413, 30.9746)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#654D98 #80984D
analogous
#4D5B98 #654D98 #8B4D98
triadic
#654D98 #98654D #4D9865
tetradic
#654D98 #984D5B #80984D #4D988B
square
#654D98 #984D5B #80984D #4D988B
split-complementary
#654D98 #988B4D #5B984D
monochromatic
#2F2447 #4A386F #654D98 #846DB5 #A696CA

Accessibility & contrast

On white

6.84
#654D98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#654D98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #654D98
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##654D98#FFFFFF#000000##FFFFFF
##654D981.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335B9B
Deuteranopia (green-blind)
#385A96
Tritanopia (blue-blind)
#5A5B6B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #654d98;
/* rgb */ color: rgb(101, 77, 152);
/* oklch */ color: oklch(48.1% 0.118 296.4);
Tailwind
colors: {
  custom: {
    50: '#937fb7',
    500: '#654d98',
    950: '#000000',
  },
}
SCSS
$custom: #654d98;
$custom-light: #937fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#654d98",
  "rgb": {
    "r": 101,
    "g": 77,
    "b": 152
  },
  "hsl": {
    "h": 259.2,
    "s": 32.751,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48056,
    "c": 0.1185,
    "h": 296.4
  },
  "luminance": 0.10341
}

Semantic roles & 50–950 ramp

primary
#654D98
secondary
#A8B68B
accent
#C95FA7
background
#F9F7FB
surface
#F2EEF6
border
#CCC9D0
text
#0D0A11
muted
#7E7C80

Preview Lab

Preview with #654D98

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

Preview Lab → · Contrast checker → · Palette generator →

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