#645FE2#645FE2

#645FE2 is a mid, vivid blue. Relative luminance 0.164; OKLCH L 56.3% C 0.193 H 279.9°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#645FE2
RGBrgb(100, 95, 226)
HSLhsl(242, 69%, 63%)
HSVhsv(242, 58%, 89%)
CMYKcmyk(55.8%, 58%, 0%, 11.4%)
CIE-LABlab(47.47, 38.31, -66.31)
CIE-LCHlch(47.47, 76.58, 300.01°)
OKLaboklab(56.28% 0.0332 -0.1902)
OKLCHoklch(56.28% 0.193 279.9)
XYZxyz(23.0709, 16.3832, 73.8833)
Luminance0.1638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FE2 #DDE25F
analogous
#5F9BE2 #645FE2 #A55FE2
triadic
#645FE2 #E2645F #5FE264
tetradic
#645FE2 #E25F9B #DDE25F #5FE2A5
square
#645FE2 #E25F9B #DDE25F #5FE2A5
split-complementary
#645FE2 #E2A55F #9BE25F
monochromatic
#241EA8 #322BD9 #645FE2 #9693EB #C8C7F5

Accessibility & contrast

On white

4.91
#645FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#645FE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645FE2
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645FE2#FFFFFF#000000##FFFFFF
##645FE21.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E6
Deuteranopia (green-blind)
#006CDF
Tritanopia (blue-blind)
#217E97
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #645fe2;
/* rgb */ color: rgb(100, 95, 226);
/* oklch */ color: oklch(56.3% 0.193 279.9);
Tailwind
colors: {
  custom: {
    50: '#9a8cec',
    500: '#645fe2',
    950: '#000000',
  },
}
SCSS
$custom: #645fe2;
$custom-light: #9a8cec;
$custom-dark: #000000;
JSON
{
  "hex": "#645fe2",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 226
  },
  "hsl": {
    "h": 242.29,
    "s": 69.312,
    "l": 62.941
  },
  "oklch": {
    "l": 0.56278,
    "c": 0.19311,
    "h": 279.9
  },
  "luminance": 0.16385
}

Semantic roles & 50–950 ramp

primary
#645FE2
secondary
#E4E6B7
accent
#D114CA
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0C16
muted
#7F7D84

Preview Lab

Preview with #645FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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