#664FCD#664FCD

#664FCD is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.2% C 0.186 H 286.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#664FCD
RGBrgb(102, 79, 205)
HSLhsl(251, 56%, 56%)
HSVhsv(251, 61%, 80%)
CMYKcmyk(50.2%, 61.5%, 0%, 19.6%)
CIE-LABlab(42.50, 41.70, -62.38)
CIE-LCHlch(42.50, 75.04, 303.76°)
OKLaboklab(52.18% 0.0526 -0.1787)
OKLCHoklch(52.18% 0.186 286.4)
XYZxyz(19.2917, 12.8236, 59.2045)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664FCD #B6CD4F
analogous
#4F77CD #664FCD #A54FCD
triadic
#664FCD #CD664F #4FCD66
tetradic
#664FCD #CD4F77 #B6CD4F #4FCDA5
square
#664FCD #CD4F77 #B6CD4F #4FCDA5
split-complementary
#664FCD #CDA54F #77CD4F
monochromatic
#34247E #4831AE #664FCD #8F7FDB #B9AEE8

Accessibility & contrast

On white

5.89
#664FCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #664FCD
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664FCD#FFFFFF#000000##FFFFFF
##664FCD1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#0061CA
Tritanopia (blue-blind)
#406D86
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #664fcd;
/* rgb */ color: rgb(102, 79, 205);
/* oklch */ color: oklch(52.2% 0.186 286.4);
Tailwind
colors: {
  custom: {
    50: '#9a81dd',
    500: '#664fcd',
    950: '#000000',
  },
}
SCSS
$custom: #664fcd;
$custom-light: #9a81dd;
$custom-dark: #000000;
JSON
{
  "hex": "#664fcd",
  "rgb": {
    "r": 102,
    "g": 79,
    "b": 205
  },
  "hsl": {
    "h": 250.952,
    "s": 55.752,
    "l": 55.686
  },
  "oklch": {
    "l": 0.52184,
    "c": 0.18627,
    "h": 286.4
  },
  "luminance": 0.12825
}

Semantic roles & 50–950 ramp

primary
#664FCD
secondary
#CDD6A2
accent
#DF49C4
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0F0A15
muted
#7E7C83

Preview Lab

Preview with #664FCD

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

Preview Lab → · Contrast checker → · Palette generator →

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