#664CBE#664CBE

#664CBE is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.6% C 0.171 H 289.3°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#664CBE
RGBrgb(102, 76, 190)
HSLhsl(254, 47%, 52%)
HSVhsv(254, 60%, 75%)
CMYKcmyk(46.3%, 60%, 0%, 25.5%)
CIE-LABlab(40.75, 39.04, -56.50)
CIE-LCHlch(40.75, 68.68, 304.64°)
OKLaboklab(50.57% 0.0566 -0.1614)
OKLCHoklch(50.57% 0.171 289.3)
XYZxyz(17.3556, 11.7107, 50.0511)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CBE #A4BE4C
analogous
#4C6BBE #664CBE #9F4CBE
triadic
#664CBE #BE664C #4CBE66
tetradic
#664CBE #BE4C6B #A4BE4C #4CBE9F
square
#664CBE #BE4C6B #A4BE4C #4CBE9F
split-complementary
#664CBE #BE9F4C #6BBE4C
monochromatic
#362669 #4C3796 #664CBE #8C79CE #B3A6DF

Accessibility & contrast

On white

6.28
#664CBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#664CBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CBE
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CBE#FFFFFF#000000##FFFFFF
##664CBE1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C2
Deuteranopia (green-blind)
#005DBC
Tritanopia (blue-blind)
#4A667E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #664cbe;
/* rgb */ color: rgb(102, 76, 190);
/* oklch */ color: oklch(50.6% 0.171 289.3);
Tailwind
colors: {
  custom: {
    50: '#987fd2',
    500: '#664cbe',
    950: '#000000',
  },
}
SCSS
$custom: #664cbe;
$custom-light: #987fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#664cbe",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 190
  },
  "hsl": {
    "h": 253.684,
    "s": 46.721,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50567,
    "c": 0.17104,
    "h": 289.3
  },
  "luminance": 0.11711
}

Semantic roles & 50–950 ramp

primary
#664CBE
secondary
#C0CC9A
accent
#D651B8
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #664CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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