#645CB2#645CB2

#645CB2 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.4% C 0.132 H 285.1°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#645CB2
RGBrgb(100, 92, 178)
HSLhsl(246, 36%, 53%)
HSVhsv(246, 48%, 70%)
CMYKcmyk(43.8%, 48.3%, 0%, 30.2%)
CIE-LABlab(43.62, 25.37, -44.88)
CIE-LCHlch(43.62, 51.55, 299.48°)
OKLaboklab(52.41% 0.0344 -0.1272)
OKLCHoklch(52.41% 0.132 285.1)
XYZxyz(17.1162, 13.5773, 43.8297)
Luminance0.1358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645CB2 #AAB25C
analogous
#5C7FB2 #645CB2 #8F5CB2
triadic
#645CB2 #B2645C #5CB264
tetradic
#645CB2 #B25C7F #AAB25C #5CB28F
square
#645CB2 #B25C7F #AAB25C #5CB28F
split-complementary
#645CB2 #B28F5C #7FB25C
monochromatic
#342F64 #4A438E #645CB2 #8C86C6 #B3AFD9

Accessibility & contrast

On white

5.65
#645CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#645CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645CB2
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645CB2#FFFFFF#000000##FFFFFF
##645CB21.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396AB5
Deuteranopia (green-blind)
#3664B0
Tritanopia (blue-blind)
#4C6E7E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #645cb2;
/* rgb */ color: rgb(100, 92, 178);
/* oklch */ color: oklch(52.4% 0.132 285.1);
Tailwind
colors: {
  custom: {
    50: '#948ac9',
    500: '#645cb2',
    950: '#000000',
  },
}
SCSS
$custom: #645cb2;
$custom-light: #948ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#645cb2",
  "rgb": {
    "r": 100,
    "g": 92,
    "b": 178
  },
  "hsl": {
    "h": 245.581,
    "s": 35.833,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52407,
    "c": 0.13181,
    "h": 285.1
  },
  "luminance": 0.13578
}

Semantic roles & 50–950 ramp

primary
#645CB2
secondary
#C4C7A2
accent
#CC5CC1
background
#F9F8FC
surface
#F2F0F8
border
#CCCBD1
text
#0E0B13
muted
#7E7C82

Preview Lab

Preview with #645CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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