#645895#645895

#645895 is a mid, moderate violet. Relative luminance 0.119; OKLCH L 49.9% C 0.096 H 291.6°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#645895
RGBrgb(100, 88, 149)
HSLhsl(252, 26%, 46%)
HSVhsv(252, 41%, 58%)
CMYKcmyk(32.9%, 40.9%, 0%, 41.6%)
CIE-LABlab(40.99, 19.47, -31.84)
CIE-LCHlch(40.99, 37.32, 301.44°)
OKLaboklab(49.9% 0.0352 -0.0892)
OKLCHoklch(49.9% 0.096 291.6)
XYZxyz(14.1687, 11.8584, 29.9703)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645895 #899558
analogous
#586B95 #645895 #835895
triadic
#645895 #956458 #589564
tetradic
#645895 #95586B #899558 #589583
square
#645895 #95586B #899558 #589583
split-complementary
#645895 #958358 #6B9558
monochromatic
#302B48 #4A416F #645895 #857AB0 #A8A0C7

Accessibility & contrast

On white

6.23
#645895 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #645895
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645895#FFFFFF#000000##FFFFFF
##6458951.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #645895;
/* rgb */ color: rgb(100, 88, 149);
/* oklch */ color: oklch(49.9% 0.096 291.6);
Tailwind
colors: {
  custom: {
    50: '#9287b4',
    500: '#645895',
    950: '#000000',
  },
}
SCSS
$custom: #645895;
$custom-light: #9287b4;
$custom-dark: #000000;
JSON
{
  "hex": "#645895",
  "rgb": {
    "r": 100,
    "g": 88,
    "b": 149
  },
  "hsl": {
    "h": 251.803,
    "s": 25.738,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49897,
    "c": 0.09588,
    "h": 291.6
  },
  "luminance": 0.11859
}

Semantic roles & 50–950 ramp

primary
#645895
secondary
#AEB594
accent
#C266B0
background
#F9F8FB
surface
#F1EFF6
border
#CBCAD0
text
#0D0B11
muted
#7E7C80

Preview Lab

Preview with #645895

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

Preview Lab → · Contrast checker → · Palette generator →

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