#645FEC#645FEC

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

Color values

HEX#645FEC
RGBrgb(100, 95, 236)
HSLhsl(242, 79%, 65%)
HSVhsv(242, 60%, 93%)
CMYKcmyk(57.6%, 59.7%, 0%, 7.5%)
CIE-LABlab(48.19, 41.44, -70.78)
CIE-LCHlch(48.19, 82.02, 300.35°)
OKLaboklab(57.04% 0.033 -0.2034)
OKLCHoklch(57.04% 0.206 279.2)
XYZxyz(24.4833, 16.9482, 81.3218)
Luminance0.1695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FEC #E7EC5F
analogous
#5FA0EC #645FEC #AB5FEC
triadic
#645FEC #EC645F #5FEC64
tetradic
#645FEC #EC5FA0 #E7EC5F #5FECAB
square
#645FEC #EC5FA0 #E7EC5F #5FECAB
split-complementary
#645FEC #ECAB5F #A0EC5F
monochromatic
#1C16BA #2F28E6 #645FEC #9996F2 #CECCF9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##645FEC#FFFFFF#000000##FFFFFF
##645FEC1.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)
#0078F1
Deuteranopia (green-blind)
#006DE9
Tritanopia (blue-blind)
#04819C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #645fec;
/* rgb */ color: rgb(100, 95, 236);
/* oklch */ color: oklch(57.0% 0.206 279.2);
Tailwind
colors: {
  custom: {
    50: '#9c8df3',
    500: '#645fec',
    950: '#000000',
  },
}
SCSS
$custom: #645fec;
$custom-light: #9c8df3;
$custom-dark: #000000;
JSON
{
  "hex": "#645fec",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 242.128,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.57037,
    "c": 0.20602,
    "h": 279.2
  },
  "luminance": 0.1695
}

Semantic roles & 50–950 ramp

primary
#645FEC
secondary
#EAEBBB
accent
#DB0AD4
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #645FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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