#645EF8#645EF8

#645EF8 is a mid, highly saturated blue. Relative luminance 0.175; OKLCH L 57.8% C 0.222 H 278.6°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#645EF8
RGBrgb(100, 94, 248)
HSLhsl(242, 92%, 67%)
HSVhsv(242, 62%, 97%)
CMYKcmyk(59.7%, 62.1%, 0%, 2.7%)
CIE-LABlab(48.87, 45.77, -76.39)
CIE-LCHlch(48.87, 89.05, 300.93°)
OKLaboklab(57.82% 0.0332 -0.2199)
OKLCHoklch(57.82% 0.222 278.6)
XYZxyz(26.1961, 17.4901, 90.7842)
Luminance0.1749 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645EF8 #F2F85E
analogous
#5EA5F8 #645EF8 #B15EF8
triadic
#645EF8 #F8645E #5EF864
tetradic
#645EF8 #F85EA5 #F2F85E #5EF8B1
square
#645EF8 #F85EA5 #F2F85E #5EF8B1
split-complementary
#645EF8 #F8B15E #A5F85E
monochromatic
#1109D2 #2C23F5 #645EF8 #9C99FB #D5D3FD

Accessibility & contrast

On white

4.67
#645EF8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#645EF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #645EF8
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645EF8#FFFFFF#000000##FFFFFF
##645EF81.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007AFD
Deuteranopia (green-blind)
#006EF5
Tritanopia (blue-blind)
#0085A2
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #645ef8;
/* rgb */ color: rgb(100, 94, 248);
/* oklch */ color: oklch(57.8% 0.222 278.6);
Tailwind
colors: {
  custom: {
    50: '#9e8cfc',
    500: '#645ef8',
    950: '#000000',
  },
}
SCSS
$custom: #645ef8;
$custom-light: #9e8cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#645ef8",
  "rgb": {
    "r": 100,
    "g": 94,
    "b": 248
  },
  "hsl": {
    "h": 242.338,
    "s": 91.667,
    "l": 67.059
  },
  "oklch": {
    "l": 0.57815,
    "c": 0.22236,
    "h": 278.6
  },
  "luminance": 0.17492
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #645EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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