#654EB2#654EB2

#654EB2 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 49.9% C 0.152 H 290.4°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#654EB2
RGBrgb(101, 78, 178)
HSLhsl(254, 39%, 50%)
HSVhsv(254, 56%, 70%)
CMYKcmyk(43.3%, 56.2%, 0%, 30.2%)
CIE-LABlab(40.29, 34.15, -50.21)
CIE-LCHlch(40.29, 60.72, 304.22°)
OKLaboklab(49.95% 0.0531 -0.1429)
OKLCHoklch(49.95% 0.152 290.4)
XYZxyz(16.1249, 11.4293, 43.4673)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#654EB2 #9BB24E
analogous
#4E69B2 #654EB2 #974EB2
triadic
#654EB2 #B2654E #4EB265
tetradic
#654EB2 #B24E69 #9BB24E #4EB297
square
#654EB2 #B24E69 #9BB24E #4EB297
split-complementary
#654EB2 #B2974E #69B24E
monochromatic
#35295D #4D3B88 #654EB2 #8A79C5 #AFA3D7

Accessibility & contrast

On white

6.39
#654EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#654EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #654EB2
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##654EB2#FFFFFF#000000##FFFFFF
##654EB21.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1761B5
Deuteranopia (green-blind)
#1C5DB0
Tritanopia (blue-blind)
#4F6478
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #654eb2;
/* rgb */ color: rgb(101, 78, 178);
/* oklch */ color: oklch(49.9% 0.152 290.4);
Tailwind
colors: {
  custom: {
    50: '#9680ca',
    500: '#654eb2',
    950: '#000000',
  },
}
SCSS
$custom: #654eb2;
$custom-light: #9680ca;
$custom-dark: #000000;
JSON
{
  "hex": "#654eb2",
  "rgb": {
    "r": 101,
    "g": 78,
    "b": 178
  },
  "hsl": {
    "h": 253.8,
    "s": 39.37,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49946,
    "c": 0.15246,
    "h": 290.4
  },
  "luminance": 0.1143
}

Semantic roles & 50–950 ramp

primary
#654EB2
secondary
#BAC498
accent
#CF59B4
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0E0A13
muted
#7E7C82

Preview Lab

Preview with #654EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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