#664FD4#664FD4

#664FD4 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.7% C 0.195 H 285.5°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#664FD4
RGBrgb(102, 79, 212)
HSLhsl(250, 61%, 57%)
HSVhsv(250, 63%, 83%)
CMYKcmyk(51.9%, 62.7%, 0%, 16.9%)
CIE-LABlab(43.02, 43.78, -65.57)
CIE-LCHlch(43.02, 78.84, 303.73°)
OKLaboklab(52.73% 0.0521 -0.188)
OKLCHoklch(52.73% 0.195 285.5)
XYZxyz(20.1556, 13.1692, 63.7544)
Luminance0.1317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664FD4 #BDD44F
analogous
#4F7BD4 #664FD4 #A94FD4
triadic
#664FD4 #D4664F #4FD466
tetradic
#664FD4 #D44F7B #BDD44F #4FD4A9
square
#664FD4 #D44F7B #BDD44F #4FD4A9
split-complementary
#664FD4 #D4A94F #7BD44F
monochromatic
#332187 #452DB9 #664FD4 #9180E0 #BCB1EC

Accessibility & contrast

On white

5.78
#664FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#664FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664FD4
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664FD4#FFFFFF#000000##FFFFFF
##664FD41.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D8
Deuteranopia (green-blind)
#0062D1
Tritanopia (blue-blind)
#3B6F8A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #664fd4;
/* rgb */ color: rgb(102, 79, 212);
/* oklch */ color: oklch(52.7% 0.195 285.5);
Tailwind
colors: {
  custom: {
    50: '#9b81e2',
    500: '#664fd4',
    950: '#000000',
  },
}
SCSS
$custom: #664fd4;
$custom-light: #9b81e2;
$custom-dark: #000000;
JSON
{
  "hex": "#664fd4",
  "rgb": {
    "r": 102,
    "g": 79,
    "b": 212
  },
  "hsl": {
    "h": 250.376,
    "s": 60.731,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52727,
    "c": 0.19513,
    "h": 285.5
  },
  "luminance": 0.1317
}

Semantic roles & 50–950 ramp

primary
#664FD4
secondary
#D1DAA4
accent
#E444C8
background
#FAF8FE
surface
#F3EFFC
border
#CDCAD5
text
#0F0A15
muted
#7F7C84

Preview Lab

Preview with #664FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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