#645EF7#645EF7

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

Color values

HEX#645EF7
RGBrgb(100, 94, 247)
HSLhsl(242, 91%, 67%)
HSVhsv(242, 62%, 97%)
CMYKcmyk(59.5%, 61.9%, 0%, 3.1%)
CIE-LABlab(48.80, 45.46, -75.96)
CIE-LCHlch(48.80, 88.52, 300.90°)
OKLaboklab(57.74% 0.0333 -0.2186)
OKLCHoklch(57.74% 0.221 278.6)
XYZxyz(26.0414, 17.4282, 89.9693)
Luminance0.1743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645EF7 #F1F75E
analogous
#5EA5F7 #645EF7 #B15EF7
triadic
#645EF7 #F7645E #5EF764
tetradic
#645EF7 #F75EA5 #F1F75E #5EF7B1
square
#645EF7 #F75EA5 #F1F75E #5EF7B1
split-complementary
#645EF7 #F7B15E #A5F75E
monochromatic
#120AD0 #2C24F4 #645EF7 #9C98FA #D4D3FD

Accessibility & contrast

On white

4.68
#645EF7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#645EF7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645EF7
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645EF7#FFFFFF#000000##FFFFFF
##645EF71.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007AFC
Deuteranopia (green-blind)
#006EF4
Tritanopia (blue-blind)
#0084A2
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #645ef7;
/* rgb */ color: rgb(100, 94, 247);
/* oklch */ color: oklch(57.7% 0.221 278.6);
Tailwind
colors: {
  custom: {
    50: '#9e8cfb',
    500: '#645ef7',
    950: '#000000',
  },
}
SCSS
$custom: #645ef7;
$custom-light: #9e8cfb;
$custom-dark: #000000;
JSON
{
  "hex": "#645ef7",
  "rgb": {
    "r": 100,
    "g": 94,
    "b": 247
  },
  "hsl": {
    "h": 242.353,
    "s": 90.533,
    "l": 66.863
  },
  "oklch": {
    "l": 0.57735,
    "c": 0.22111,
    "h": 278.6
  },
  "luminance": 0.1743
}

Semantic roles & 50–950 ramp

primary
#645EF7
secondary
#EFF1C0
accent
#E600DC
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100C18
muted
#7F7D86

Preview Lab

Preview with #645EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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