#664DCF#664DCF

#664DCF is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.0% C 0.191 H 286.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#664DCF
RGBrgb(102, 77, 207)
HSLhsl(252, 58%, 56%)
HSVhsv(252, 63%, 81%)
CMYKcmyk(50.7%, 62.8%, 0%, 18.8%)
CIE-LABlab(42.21, 43.45, -64.00)
CIE-LCHlch(42.21, 77.36, 304.17°)
OKLaboklab(52.02% 0.0545 -0.1834)
OKLCHoklch(52.02% 0.191 286.5)
XYZxyz(19.3925, 12.6366, 60.4367)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664DCF #B6CF4D
analogous
#4D75CF #664DCF #A74DCF
triadic
#664DCF #CF664D #4DCF66
tetradic
#664DCF #CF4D75 #B6CF4D #4DCFA7
square
#664DCF #CF4D75 #B6CF4D #4DCFA7
split-complementary
#664DCF #CFA74D #75CF4D
monochromatic
#34227F #482FAF #664DCF #8F7DDC #B9ADE9

Accessibility & contrast

On white

5.95
#664DCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#664DCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664DCF
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664DCF#FFFFFF#000000##FFFFFF
##664DCF1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#0060CC
Tritanopia (blue-blind)
#3F6C87
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #664dcf;
/* rgb */ color: rgb(102, 77, 207);
/* oklch */ color: oklch(52.0% 0.191 286.5);
Tailwind
colors: {
  custom: {
    50: '#9a80df',
    500: '#664dcf',
    950: '#000000',
  },
}
SCSS
$custom: #664dcf;
$custom-light: #9a80df;
$custom-dark: #000000;
JSON
{
  "hex": "#664dcf",
  "rgb": {
    "r": 102,
    "g": 77,
    "b": 207
  },
  "hsl": {
    "h": 251.538,
    "s": 57.522,
    "l": 55.686
  },
  "oklch": {
    "l": 0.52022,
    "c": 0.19137,
    "h": 286.5
  },
  "luminance": 0.12638
}

Semantic roles & 50–950 ramp

primary
#664DCF
secondary
#CDD7A1
accent
#E147C3
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #664DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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