#664EEB#664EEB

#664EEB is a mid, highly saturated blue. Relative luminance 0.143; OKLCH L 54.4% C 0.225 H 283.0°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#664EEB
RGBrgb(102, 78, 235)
HSLhsl(249, 80%, 61%)
HSVhsv(249, 67%, 92%)
CMYKcmyk(56.6%, 66.8%, 0%, 7.8%)
CIE-LABlab(44.62, 51.17, -76.04)
CIE-LCHlch(44.62, 91.66, 303.94°)
OKLaboklab(54.45% 0.0504 -0.2188)
OKLCHoklch(54.45% 0.225 283)
XYZxyz(23.1947, 14.2702, 80.1134)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664EEB #D3EB4E
analogous
#4E85EB #664EEB #B54EEB
triadic
#664EEB #EB664E #4EEB66
tetradic
#664EEB #EB4E85 #D3EB4E #4EEBB5
square
#664EEB #EB4E85 #D3EB4E #4EEBB5
split-complementary
#664EEB #EBB54E #85EB4E
monochromatic
#2B13AB #381AE2 #664EEB #9685F1 #C5BCF7

Accessibility & contrast

On white

5.45
#664EEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#664EEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664EEB
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664EEB#FFFFFF#000000##FFFFFF
##664EEB1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FF0
Deuteranopia (green-blind)
#0064E8
Tritanopia (blue-blind)
#1D7796
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #664eeb;
/* rgb */ color: rgb(102, 78, 235);
/* oklch */ color: oklch(54.4% 0.225 283.0);
Tailwind
colors: {
  custom: {
    50: '#9e81f3',
    500: '#664eeb',
    950: '#000000',
  },
}
SCSS
$custom: #664eeb;
$custom-light: #9e81f3;
$custom-dark: #000000;
JSON
{
  "hex": "#664eeb",
  "rgb": {
    "r": 102,
    "g": 78,
    "b": 235
  },
  "hsl": {
    "h": 249.172,
    "s": 79.695,
    "l": 61.373
  },
  "oklch": {
    "l": 0.54448,
    "c": 0.22453,
    "h": 283
  },
  "luminance": 0.14272
}

Semantic roles & 50–950 ramp

primary
#664EEB
secondary
#DFE8AD
accent
#DC09BC
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100A17
muted
#7F7C85

Preview Lab

Preview with #664EEB

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

Preview Lab → · Contrast checker → · Palette generator →

#664EEB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva