#654097#654097

#654097 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 45.7% C 0.138 H 300.7°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#654097
RGBrgb(101, 64, 151)
HSLhsl(266, 40%, 42%)
HSVhsv(266, 58%, 59%)
CMYKcmyk(33.1%, 57.6%, 0%, 40.8%)
CIE-LABlab(35.34, 34.91, -42.02)
CIE-LCHlch(35.34, 54.63, 309.72°)
OKLaboklab(45.73% 0.0705 -0.1189)
OKLCHoklch(45.73% 0.138 300.7)
XYZxyz(12.7848, 8.6678, 30.2717)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#654097 #729740
analogous
#404797 #654097 #914097
triadic
#654097 #976540 #409765
tetradic
#654097 #974047 #729740 #409791
square
#654097 #974047 #729740 #409791
split-complementary
#654097 #979140 #479740
monochromatic
#2C1C41 #482E6C #654097 #835BB9 #A386CC

Accessibility & contrast

On white

7.68
#654097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#654097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #654097
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##654097#FFFFFF#000000##FFFFFF
##6540971.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A539A
Deuteranopia (green-blind)
#285395
Tritanopia (blue-blind)
#5B5165
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #654097;
/* rgb */ color: rgb(101, 64, 151);
/* oklch */ color: oklch(45.7% 0.138 300.7);
Tailwind
colors: {
  custom: {
    50: '#9476b6',
    500: '#654097',
    950: '#000000',
  },
}
SCSS
$custom: #654097;
$custom-light: #9476b6;
$custom-dark: #000000;
JSON
{
  "hex": "#654097",
  "rgb": {
    "r": 101,
    "g": 64,
    "b": 151
  },
  "hsl": {
    "h": 265.517,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45728,
    "c": 0.13822,
    "h": 300.7
  },
  "luminance": 0.08668
}

Semantic roles & 50–950 ramp

primary
#654097
secondary
#9EB67D
accent
#D0579D
background
#F9F7FB
surface
#F2EDF6
border
#CCC8D0
text
#0D0811
muted
#7E7B80

Preview Lab

Preview with #654097

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

Preview Lab → · Contrast checker → · Palette generator →

#654097 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva