#645498#645498

#645498 is a mid, moderate violet. Relative luminance 0.113; OKLCH L 49.3% C 0.107 H 292.9°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#645498
RGBrgb(100, 84, 152)
HSLhsl(254, 29%, 46%)
HSVhsv(254, 45%, 60%)
CMYKcmyk(34.2%, 44.7%, 0%, 40.4%)
CIE-LABlab(40.11, 22.79, -35.03)
CIE-LCHlch(40.11, 41.79, 303.04°)
OKLaboklab(49.28% 0.0415 -0.0985)
OKLCHoklch(49.28% 0.107 292.9)
XYZxyz(14.0919, 11.3167, 31.1416)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645498 #889854
analogous
#546698 #645498 #865498
triadic
#645498 #986454 #549864
tetradic
#645498 #985466 #889854 #549886
square
#645498 #985466 #889854 #549886
split-complementary
#645498 #988654 #669854
monochromatic
#302849 #4A3E71 #645498 #8476B3 #A89DC9

Accessibility & contrast

On white

6.44
#645498 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#645498 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645498
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645498#FFFFFF#000000##FFFFFF
##6454981.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5F9B
Deuteranopia (green-blind)
#405D96
Tritanopia (blue-blind)
#58616E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #645498;
/* rgb */ color: rgb(100, 84, 152);
/* oklch */ color: oklch(49.3% 0.107 292.9);
Tailwind
colors: {
  custom: {
    50: '#9284b6',
    500: '#645498',
    950: '#000000',
  },
}
SCSS
$custom: #645498;
$custom-light: #9284b6;
$custom-dark: #000000;
JSON
{
  "hex": "#645498",
  "rgb": {
    "r": 100,
    "g": 84,
    "b": 152
  },
  "hsl": {
    "h": 254.118,
    "s": 28.814,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49281,
    "c": 0.10687,
    "h": 292.9
  },
  "luminance": 0.11317
}

Semantic roles & 50–950 ramp

primary
#645498
secondary
#AEB692
accent
#C563AE
background
#F9F8FB
surface
#F1EFF6
border
#CBCAD0
text
#0D0B11
muted
#7E7C80

Preview Lab

Preview with #645498

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

Preview Lab → · Contrast checker → · Palette generator →

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