#645FF2#645FF2

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

Color values

HEX#645FF2
RGBrgb(100, 95, 242)
HSLhsl(242, 85%, 66%)
HSVhsv(242, 61%, 95%)
CMYKcmyk(58.7%, 60.7%, 0%, 5.1%)
CIE-LABlab(48.64, 43.31, -73.42)
CIE-LCHlch(48.64, 85.24, 300.54°)
OKLaboklab(57.5% 0.0327 -0.2111)
OKLCHoklch(57.5% 0.214 278.8)
XYZxyz(25.3696, 17.3027, 85.9901)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FF2 #EDF25F
analogous
#5FA3F2 #645FF2 #AD5FF2
triadic
#645FF2 #F2645F #5FF264
tetradic
#645FF2 #F25FA3 #EDF25F #5FF2AD
square
#645FF2 #F25FA3 #EDF25F #5FF2AD
split-complementary
#645FF2 #F2AD5F #A3F25F
monochromatic
#1610C6 #2D26ED #645FF2 #9B98F7 #D2D0FB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##645FF2#FFFFFF#000000##FFFFFF
##645FF21.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)
#0079F7
Deuteranopia (green-blind)
#006EEF
Tritanopia (blue-blind)
#0083A0
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #645ff2;
/* rgb */ color: rgb(100, 95, 242);
/* oklch */ color: oklch(57.5% 0.214 278.8);
Tailwind
colors: {
  custom: {
    50: '#9d8df7',
    500: '#645ff2',
    950: '#000000',
  },
}
SCSS
$custom: #645ff2;
$custom-light: #9d8df7;
$custom-dark: #000000;
JSON
{
  "hex": "#645ff2",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 242
  },
  "hsl": {
    "h": 242.041,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.57503,
    "c": 0.21364,
    "h": 278.8
  },
  "luminance": 0.17305
}

Semantic roles & 50–950 ramp

primary
#645FF2
secondary
#EDEFBE
accent
#E104DA
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #645FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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