#645EF5#645EF5

#645EF5 is a mid, highly saturated blue. Relative luminance 0.173; OKLCH L 57.6% C 0.219 H 278.8°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#645EF5
RGBrgb(100, 94, 245)
HSLhsl(242, 88%, 66%)
HSVhsv(242, 62%, 96%)
CMYKcmyk(59.2%, 61.6%, 0%, 3.9%)
CIE-LABlab(48.64, 44.83, -75.09)
CIE-LCHlch(48.64, 87.46, 300.84°)
OKLaboklab(57.58% 0.0334 -0.216)
OKLCHoklch(57.58% 0.219 278.8)
XYZxyz(25.7344, 17.3054, 88.3527)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645EF5 #EFF55E
analogous
#5EA4F5 #645EF5 #B05EF5
triadic
#645EF5 #F5645E #5EF564
tetradic
#645EF5 #F55EA4 #EFF55E #5EF5B0
square
#645EF5 #F55EA4 #EFF55E #5EF5B0
split-complementary
#645EF5 #F5B05E #A4F55E
monochromatic
#140DCC #2D24F1 #645EF5 #9B98F9 #D3D1FC

Accessibility & contrast

On white

4.71
#645EF5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#645EF5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645EF5
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645EF5#FFFFFF#000000##FFFFFF
##645EF51.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #645ef5;
/* rgb */ color: rgb(100, 94, 245);
/* oklch */ color: oklch(57.6% 0.219 278.8);
Tailwind
colors: {
  custom: {
    50: '#9d8cf9',
    500: '#645ef5',
    950: '#000000',
  },
}
SCSS
$custom: #645ef5;
$custom-light: #9d8cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#645ef5",
  "rgb": {
    "r": 100,
    "g": 94,
    "b": 245
  },
  "hsl": {
    "h": 242.384,
    "s": 88.304,
    "l": 66.471
  },
  "oklch": {
    "l": 0.57576,
    "c": 0.21861,
    "h": 278.8
  },
  "luminance": 0.17307
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #645EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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