#664DCD#664DCD

#664DCD is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.9% C 0.189 H 286.8°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#664DCD
RGBrgb(102, 77, 205)
HSLhsl(252, 56%, 55%)
HSVhsv(252, 62%, 80%)
CMYKcmyk(50.2%, 62.4%, 0%, 19.6%)
CIE-LABlab(42.06, 42.86, -63.09)
CIE-LCHlch(42.06, 76.27, 304.19°)
OKLaboklab(51.87% 0.0546 -0.1808)
OKLCHoklch(51.87% 0.189 286.8)
XYZxyz(19.1496, 12.5394, 59.1571)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664DCD #B4CD4D
analogous
#4D74CD #664DCD #A64DCD
triadic
#664DCD #CD664D #4DCD66
tetradic
#664DCD #CD4D74 #B4CD4D #4DCDA6
square
#664DCD #CD4D74 #B4CD4D #4DCDA6
split-complementary
#664DCD #CDA64D #74CD4D
monochromatic
#35237D #4930AC #664DCD #8F7DDA #B8ADE8

Accessibility & contrast

On white

5.99
#664DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#664DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664DCD
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664DCD#FFFFFF#000000##FFFFFF
##664DCD1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#406C86
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #664dcd;
/* rgb */ color: rgb(102, 77, 205);
/* oklch */ color: oklch(51.9% 0.189 286.8);
Tailwind
colors: {
  custom: {
    50: '#9a80dd',
    500: '#664dcd',
    950: '#000000',
  },
}
SCSS
$custom: #664dcd;
$custom-light: #9a80dd;
$custom-dark: #000000;
JSON
{
  "hex": "#664dcd",
  "rgb": {
    "r": 102,
    "g": 77,
    "b": 205
  },
  "hsl": {
    "h": 251.719,
    "s": 56.14,
    "l": 55.294
  },
  "oklch": {
    "l": 0.51866,
    "c": 0.18886,
    "h": 286.8
  },
  "luminance": 0.1254
}

Semantic roles & 50–950 ramp

primary
#664DCD
secondary
#CBD6A0
accent
#DF48C2
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #664DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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