#664CD6#664CD6

#664CD6 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.4% C 0.201 H 285.8°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#664CD6
RGBrgb(102, 76, 214)
HSLhsl(251, 63%, 57%)
HSVhsv(251, 64%, 84%)
CMYKcmyk(52.3%, 64.5%, 0%, 16.1%)
CIE-LABlab(42.53, 46.08, -67.50)
CIE-LCHlch(42.53, 81.73, 304.32°)
OKLaboklab(52.42% 0.0548 -0.1937)
OKLCHoklch(52.42% 0.201 285.8)
XYZxyz(20.1979, 12.8476, 65.0209)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CD6 #BCD64C
analogous
#4C77D6 #664CD6 #AB4CD6
triadic
#664CD6 #D6664C #4CD666
tetradic
#664CD6 #D64C77 #BCD64C #4CD6AB
square
#664CD6 #D64C77 #BCD64C #4CD6AB
split-complementary
#664CD6 #D6AB4C #77D64C
monochromatic
#331F88 #462BBA #664CD6 #917EE1 #BBB0ED

Accessibility & contrast

On white

5.88
#664CD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#664CD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CD6
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CD6#FFFFFF#000000##FFFFFF
##664CD61.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DA
Deuteranopia (green-blind)
#0060D3
Tritanopia (blue-blind)
#396E8A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #664cd6;
/* rgb */ color: rgb(102, 76, 214);
/* oklch */ color: oklch(52.4% 0.201 285.8);
Tailwind
colors: {
  custom: {
    50: '#9b80e4',
    500: '#664cd6',
    950: '#000000',
  },
}
SCSS
$custom: #664cd6;
$custom-light: #9b80e4;
$custom-dark: #000000;
JSON
{
  "hex": "#664cd6",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 214
  },
  "hsl": {
    "h": 251.304,
    "s": 62.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.52423,
    "c": 0.20134,
    "h": 285.8
  },
  "luminance": 0.12849
}

Semantic roles & 50–950 ramp

primary
#664CD6
secondary
#D0DBA3
accent
#E642C7
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #664CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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