#645FB2#645FB2

#645FB2 is a mid, vivid blue. Relative luminance 0.141; OKLCH L 53.0% C 0.127 H 283.9°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#645FB2
RGBrgb(100, 95, 178)
HSLhsl(244, 35%, 54%)
HSVhsv(244, 47%, 70%)
CMYKcmyk(43.8%, 46.6%, 0%, 30.2%)
CIE-LABlab(44.39, 23.52, -43.66)
CIE-LCHlch(44.39, 49.59, 298.31°)
OKLaboklab(52.99% 0.0306 -0.1236)
OKLCHoklch(52.99% 0.127 283.9)
XYZxyz(17.3813, 14.1074, 43.9180)
Luminance0.1411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FB2 #ADB25F
analogous
#5F83B2 #645FB2 #8D5FB2
triadic
#645FB2 #B2645F #5FB264
tetradic
#645FB2 #B25F83 #ADB25F #5FB28D
square
#645FB2 #B25F83 #ADB25F #5FB28D
split-complementary
#645FB2 #B28D5F #83B25F
monochromatic
#343166 #49458F #645FB2 #8C88C6 #B4B2DA

Accessibility & contrast

On white

5.50
#645FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#645FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645FB2
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645FB2#FFFFFF#000000##FFFFFF
##645FB21.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6CB5
Deuteranopia (green-blind)
#3B66B0
Tritanopia (blue-blind)
#4C7080
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #645fb2;
/* rgb */ color: rgb(100, 95, 178);
/* oklch */ color: oklch(53.0% 0.127 283.9);
Tailwind
colors: {
  custom: {
    50: '#948cc9',
    500: '#645fb2',
    950: '#000000',
  },
}
SCSS
$custom: #645fb2;
$custom-light: #948cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#645fb2",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 243.614,
    "s": 35.021,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52985,
    "c": 0.12737,
    "h": 283.9
  },
  "luminance": 0.14108
}

Semantic roles & 50–950 ramp

primary
#645FB2
secondary
#C6C8A5
accent
#CB5DC4
background
#F9F8FC
surface
#F2F0F8
border
#CCCBD1
text
#0D0C13
muted
#7E7D82

Preview Lab

Preview with #645FB2

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

Preview Lab → · Contrast checker → · Palette generator →

#645FB2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva