#645894#645894

#645894 is a mid, moderate violet. Relative luminance 0.118; OKLCH L 49.8% C 0.094 H 291.8°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#645894
RGBrgb(100, 88, 148)
HSLhsl(252, 25%, 46%)
HSVhsv(252, 41%, 58%)
CMYKcmyk(32.4%, 40.5%, 0%, 42%)
CIE-LABlab(40.94, 19.19, -31.32)
CIE-LCHlch(40.94, 36.73, 301.50°)
OKLaboklab(49.84% 0.0351 -0.0877)
OKLCHoklch(49.84% 0.094 291.8)
XYZxyz(14.0892, 11.8266, 29.5517)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645894 #889458
analogous
#586A94 #645894 #825894
triadic
#645894 #946458 #589464
tetradic
#645894 #94586A #889458 #589482
square
#645894 #94586A #889458 #589482
split-complementary
#645894 #948258 #6A9458
monochromatic
#302A47 #4A416E #645894 #847AB0 #A8A0C6

Accessibility & contrast

On white

6.24
#645894 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#645894 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645894
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645894#FFFFFF#000000##FFFFFF
##6458941.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466196
Deuteranopia (green-blind)
#475F93
Tritanopia (blue-blind)
#59636F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #645894;
/* rgb */ color: rgb(100, 88, 148);
/* oklch */ color: oklch(49.8% 0.094 291.8);
Tailwind
colors: {
  custom: {
    50: '#9287b3',
    500: '#645894',
    950: '#000000',
  },
}
SCSS
$custom: #645894;
$custom-light: #9287b3;
$custom-dark: #000000;
JSON
{
  "hex": "#645894",
  "rgb": {
    "r": 100,
    "g": 88,
    "b": 148
  },
  "hsl": {
    "h": 252,
    "s": 25.424,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49842,
    "c": 0.09441,
    "h": 291.8
  },
  "luminance": 0.11827
}

Semantic roles & 50–950 ramp

primary
#645894
secondary
#AEB494
accent
#C266AF
background
#F9F8FB
surface
#F1EFF6
border
#CBCAD0
text
#0D0B11
muted
#7E7C80

Preview Lab

Preview with #645894

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

Preview Lab → · Contrast checker → · Palette generator →

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