#645EF6#645EF6

#645EF6 is a mid, highly saturated blue. Relative luminance 0.174; OKLCH L 57.7% C 0.220 H 278.7°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#645EF6
RGBrgb(100, 94, 246)
HSLhsl(242, 89%, 67%)
HSVhsv(242, 62%, 96%)
CMYKcmyk(59.3%, 61.8%, 0%, 3.5%)
CIE-LABlab(48.72, 45.15, -75.53)
CIE-LCHlch(48.72, 87.99, 300.87°)
OKLaboklab(57.66% 0.0333 -0.2173)
OKLCHoklch(57.66% 0.22 278.7)
XYZxyz(25.8875, 17.3666, 89.1588)
Luminance0.1737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645EF6 #F0F65E
analogous
#5EA4F6 #645EF6 #B05EF6
triadic
#645EF6 #F6645E #5EF664
tetradic
#645EF6 #F65EA4 #F0F65E #5EF6B0
square
#645EF6 #F65EA4 #F0F65E #5EF6B0
split-complementary
#645EF6 #F6B05E #A4F65E
monochromatic
#130CCE #2C24F3 #645EF6 #9C98F9 #D4D2FC

Accessibility & contrast

On white

4.69
#645EF6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#645EF6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645EF6
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645EF6#FFFFFF#000000##FFFFFF
##645EF61.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007AFB
Deuteranopia (green-blind)
#006EF3
Tritanopia (blue-blind)
#0084A1
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #645ef6;
/* rgb */ color: rgb(100, 94, 246);
/* oklch */ color: oklch(57.7% 0.220 278.7);
Tailwind
colors: {
  custom: {
    50: '#9e8cfa',
    500: '#645ef6',
    950: '#000000',
  },
}
SCSS
$custom: #645ef6;
$custom-light: #9e8cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#645ef6",
  "rgb": {
    "r": 100,
    "g": 94,
    "b": 246
  },
  "hsl": {
    "h": 242.368,
    "s": 89.412,
    "l": 66.667
  },
  "oklch": {
    "l": 0.57655,
    "c": 0.21986,
    "h": 278.7
  },
  "luminance": 0.17369
}

Semantic roles & 50–950 ramp

primary
#645EF6
secondary
#EEF0BF
accent
#E600DC
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #645EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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