#664CEC#664CEC

#664CEC is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 54.2% C 0.228 H 283.2°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#664CEC
RGBrgb(102, 76, 236)
HSLhsl(250, 81%, 61%)
HSVhsv(250, 68%, 93%)
CMYKcmyk(56.8%, 67.8%, 0%, 7.5%)
CIE-LABlab(44.30, 52.55, -77.12)
CIE-LCHlch(44.30, 93.33, 304.27°)
OKLaboklab(54.25% 0.0519 -0.222)
OKLCHoklch(54.25% 0.228 283.2)
XYZxyz(23.1996, 14.0483, 80.8297)
Luminance0.1405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CEC #D2EC4C
analogous
#4C82EC #664CEC #B64CEC
triadic
#664CEC #EC664C #4CEC66
tetradic
#664CEC #EC4C82 #D2EC4C #4CECB6
square
#664CEC #EC4C82 #D2EC4C #4CECB6
split-complementary
#664CEC #ECB64C #82EC4C
monochromatic
#2B12AB #3918E3 #664CEC #9583F2 #C5BBF8

Accessibility & contrast

On white

5.51
#664CEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#664CEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CEC
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CEC#FFFFFF#000000##FFFFFF
##664CEC1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EF1
Deuteranopia (green-blind)
#0063E9
Tritanopia (blue-blind)
#1C7696
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #664cec;
/* rgb */ color: rgb(102, 76, 236);
/* oklch */ color: oklch(54.2% 0.228 283.2);
Tailwind
colors: {
  custom: {
    50: '#9e80f3',
    500: '#664cec',
    950: '#000000',
  },
}
SCSS
$custom: #664cec;
$custom-light: #9e80f3;
$custom-dark: #000000;
JSON
{
  "hex": "#664cec",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 236
  },
  "hsl": {
    "h": 249.75,
    "s": 80.808,
    "l": 61.176
  },
  "oklch": {
    "l": 0.54247,
    "c": 0.22796,
    "h": 283.2
  },
  "luminance": 0.1405
}

Semantic roles & 50–950 ramp

primary
#664CEC
secondary
#DEE8AC
accent
#DD08BB
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100A17
muted
#7F7C85

Preview Lab

Preview with #664CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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