#645F98 color

#645F98 rgb(100, 95, 152)
Shades of blue

The hex color #645F98 is a grayish blue.

In the RGB color model it is made of 39.2% red, 37.3% green and 59.6% blue (100, 95, 152).

Its hue angle is 245°, with 23% saturation and 48% lightness. For print, the CMYK equivalent is 34% cyan, 38% magenta, 0% yellow and 40% black.

The closest named color is Wizard’s Potion (#5D6098), a difference of 2.1 ΔE, a small difference.

White text is the more readable choice on this background (contrast 5.78:1).

#645F98 color codes

HEX#645F98
RGBrgb(100, 95, 152)
RGB percentrgb(39.2%, 37.3%, 59.6%)
HSLhsl(245, 23%, 48%)
HSV / HSBhsv(245, 38%, 60%)
CMYKcmyk(34%, 38%, 0%, 40%)
CIE LABlab(43, 15.96, -30.47)
CIE LCHlch(43, 34.4, 297.64)
CIE XYZxyz(15.014, 13.16, 31.449)
Decimal6578072
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #645F98, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #645F98RatioAAAAAAA large
Sample text3.63:1FailFailPass
Sample text5.78:1PassFailPass
#645F98 as text onRatioAAAAAAA large
Sample text5.78:1PassFailPass
Sample text3.63:1FailFailPass

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #645F98 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #645f98; }
.text { color: #645f98; }
.border { border: 2px solid #645f98; }
.transparent { background-color: rgb(100 95 152 / 50%); }
.gradient { background: linear-gradient(to right, #645f98, #815f98); }
Background
Text color
Border

Similar colors

Closest common color name: Royal Purple.

Questions

What color is #645F98?
#645F98 is a grayish blue, closest to the named color Wizard’s Potion. It belongs to the blue family of colors.
What is the RGB value of #645F98?
The RGB value is 100, 95, 152: 100 red, 95 green and 152 blue on a 0 to 255 scale.
What is the complementary color of #645F98?
The complementary color is #93985F, found by rotating the hue 180° on the color wheel.
Is black or white text better on #645F98?
White text. Black text has a contrast ratio of 3.63:1 and white text 5.78:1. WCAG asks for at least 4.5:1 for normal text.