#664CDB#664CDB

#664CDB is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 52.8% C 0.207 H 285.1°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#664CDB
RGBrgb(102, 76, 219)
HSLhsl(251, 67%, 58%)
HSVhsv(251, 65%, 86%)
CMYKcmyk(53.4%, 65.3%, 0%, 14.1%)
CIE-LABlab(42.92, 47.55, -69.73)
CIE-LCHlch(42.92, 84.40, 304.29°)
OKLaboklab(52.83% 0.0542 -0.2003)
OKLCHoklch(52.83% 0.207 285.1)
XYZxyz(20.8463, 13.1070, 68.4355)
Luminance0.1311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CDB #C1DB4C
analogous
#4C79DB #664CDB #AD4CDB
triadic
#664CDB #DB664C #4CDB66
tetradic
#664CDB #DB4C79 #C1DB4C #4CDBAD
square
#664CDB #DB4C79 #C1DB4C #4CDBAD
split-complementary
#664CDB #DBAD4C #79DB4C
monochromatic
#321D90 #4327C3 #664CDB #927FE5 #BDB2EF

Accessibility & contrast

On white

5.80
#664CDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#664CDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CDB
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CDB#FFFFFF#000000##FFFFFF
##664CDB1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DF
Deuteranopia (green-blind)
#0061D8
Tritanopia (blue-blind)
#34708D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #664cdb;
/* rgb */ color: rgb(102, 76, 219);
/* oklch */ color: oklch(52.8% 0.207 285.1);
Tailwind
colors: {
  custom: {
    50: '#9c80e7',
    500: '#664cdb',
    950: '#000000',
  },
}
SCSS
$custom: #664cdb;
$custom-light: #9c80e7;
$custom-dark: #000000;
JSON
{
  "hex": "#664cdb",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 219
  },
  "hsl": {
    "h": 250.909,
    "s": 66.512,
    "l": 57.843
  },
  "oklch": {
    "l": 0.52828,
    "c": 0.20748,
    "h": 285.1
  },
  "luminance": 0.13108
}

Semantic roles & 50–950 ramp

primary
#664CDB
secondary
#D4DEA5
accent
#E93ECA
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #664CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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