#664FCF#664FCF

#664FCF is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.3% C 0.189 H 286.1°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#664FCF
RGBrgb(102, 79, 207)
HSLhsl(251, 57%, 56%)
HSVhsv(251, 62%, 81%)
CMYKcmyk(50.7%, 61.8%, 0%, 18.8%)
CIE-LABlab(42.64, 42.30, -63.30)
CIE-LCHlch(42.64, 76.13, 303.75°)
OKLaboklab(52.34% 0.0525 -0.1814)
OKLCHoklch(52.34% 0.189 286.1)
XYZxyz(19.5346, 12.9208, 60.4840)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664FCF #B8CF4F
analogous
#4F78CF #664FCF #A64FCF
triadic
#664FCF #CF664F #4FCF66
tetradic
#664FCF #CF4F78 #B8CF4F #4FCFA6
square
#664FCF #CF4F78 #B8CF4F #4FCFA6
split-complementary
#664FCF #CFA64F #78CF4F
monochromatic
#342381 #4730B1 #664FCF #907FDC #BAAFE9

Accessibility & contrast

On white

5.86
#664FCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#664FCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664FCF
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664FCF#FFFFFF#000000##FFFFFF
##664FCF1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D3
Deuteranopia (green-blind)
#0061CC
Tritanopia (blue-blind)
#3F6E88
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #664fcf;
/* rgb */ color: rgb(102, 79, 207);
/* oklch */ color: oklch(52.3% 0.189 286.1);
Tailwind
colors: {
  custom: {
    50: '#9a81df',
    500: '#664fcf',
    950: '#000000',
  },
}
SCSS
$custom: #664fcf;
$custom-light: #9a81df;
$custom-dark: #000000;
JSON
{
  "hex": "#664fcf",
  "rgb": {
    "r": 102,
    "g": 79,
    "b": 207
  },
  "hsl": {
    "h": 250.781,
    "s": 57.143,
    "l": 56.078
  },
  "oklch": {
    "l": 0.52338,
    "c": 0.18881,
    "h": 286.1
  },
  "luminance": 0.12922
}

Semantic roles & 50–950 ramp

primary
#664FCF
secondary
#CED7A2
accent
#E047C5
background
#FAF8FD
surface
#F3EFFB
border
#CDCAD4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #664FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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