#645CF5#645CF5

#645CF5 is a mid, highly saturated blue. Relative luminance 0.170; OKLCH L 57.3% C 0.221 H 279.1°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#645CF5
RGBrgb(100, 92, 245)
HSLhsl(243, 88%, 66%)
HSVhsv(243, 62%, 96%)
CMYKcmyk(59.2%, 62.4%, 0%, 3.9%)
CIE-LABlab(48.20, 45.99, -75.81)
CIE-LCHlch(48.20, 88.67, 301.25°)
OKLaboklab(57.25% 0.0351 -0.2182)
OKLCHoklch(57.25% 0.221 279.1)
XYZxyz(25.5589, 16.9543, 88.2942)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645CF5 #EDF55C
analogous
#5CA0F5 #645CF5 #B05CF5
triadic
#645CF5 #F5645C #5CF564
tetradic
#645CF5 #F55CA0 #EDF55C #5CF5B0
square
#645CF5 #F55CA0 #EDF55C #5CF5B0
split-complementary
#645CF5 #F5B05C #A0F55C
monochromatic
#160CCA #2D22F1 #645CF5 #9B96F9 #D2CFFC

Accessibility & contrast

On white

4.78
#645CF5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#645CF5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645CF5
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645CF5#FFFFFF#000000##FFFFFF
##645CF51.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078FA
Deuteranopia (green-blind)
#006CF2
Tritanopia (blue-blind)
#0082A0
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #645cf5;
/* rgb */ color: rgb(100, 92, 245);
/* oklch */ color: oklch(57.3% 0.221 279.1);
Tailwind
colors: {
  custom: {
    50: '#9e8bfa',
    500: '#645cf5',
    950: '#000000',
  },
}
SCSS
$custom: #645cf5;
$custom-light: #9e8bfa;
$custom-dark: #000000;
JSON
{
  "hex": "#645cf5",
  "rgb": {
    "r": 100,
    "g": 92,
    "b": 245
  },
  "hsl": {
    "h": 243.137,
    "s": 88.439,
    "l": 66.078
  },
  "oklch": {
    "l": 0.57254,
    "c": 0.22096,
    "h": 279.1
  },
  "luminance": 0.16956
}

Semantic roles & 50–950 ramp

primary
#645CF5
secondary
#EDF0BD
accent
#E500D9
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #645CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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