#664CC4#664CC4

#664CC4 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.0% C 0.179 H 288.4°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#664CC4
RGBrgb(102, 76, 196)
HSLhsl(253, 50%, 53%)
HSVhsv(253, 61%, 77%)
CMYKcmyk(48%, 61.2%, 0%, 23.1%)
CIE-LABlab(41.18, 40.79, -59.31)
CIE-LCHlch(41.18, 71.98, 304.52°)
OKLaboklab(51.02% 0.0563 -0.1696)
OKLCHoklch(51.02% 0.179 288.4)
XYZxyz(18.0249, 11.9784, 53.5762)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CC4 #AAC44C
analogous
#4C6EC4 #664CC4 #A24CC4
triadic
#664CC4 #C4664C #4CC466
tetradic
#664CC4 #C44C6E #AAC44C #4CC4A2
square
#664CC4 #C44C6E #AAC44C #4CC4A2
split-complementary
#664CC4 #C4A24C #6EC44C
monochromatic
#352571 #4B349F #664CC4 #8D7AD3 #B5A8E2

Accessibility & contrast

On white

6.18
#664CC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#664CC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CC4
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CC4#FFFFFF#000000##FFFFFF
##664CC41.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C8
Deuteranopia (green-blind)
#005EC1
Tritanopia (blue-blind)
#476881
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #664cc4;
/* rgb */ color: rgb(102, 76, 196);
/* oklch */ color: oklch(51.0% 0.179 288.4);
Tailwind
colors: {
  custom: {
    50: '#997fd7',
    500: '#664cc4',
    950: '#000000',
  },
}
SCSS
$custom: #664cc4;
$custom-light: #997fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#664cc4",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 196
  },
  "hsl": {
    "h": 253,
    "s": 50.42,
    "l": 53.333
  },
  "oklch": {
    "l": 0.51017,
    "c": 0.17874,
    "h": 288.4
  },
  "luminance": 0.11979
}

Semantic roles & 50–950 ramp

primary
#664CC4
secondary
#C5D09C
accent
#DA4EBC
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #664CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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