#664FCA#664FCA

#664FCA is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.0% C 0.182 H 286.8°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#664FCA
RGBrgb(102, 79, 202)
HSLhsl(251, 54%, 55%)
HSVhsv(251, 61%, 79%)
CMYKcmyk(49.5%, 60.9%, 0%, 20.8%)
CIE-LABlab(42.28, 40.81, -61.01)
CIE-LCHlch(42.28, 73.40, 303.78°)
OKLaboklab(51.96% 0.0528 -0.1746)
OKLCHoklch(51.96% 0.182 286.8)
XYZxyz(18.9330, 12.6801, 57.3156)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664FCA #B3CA4F
analogous
#4F75CA #664FCA #A44FCA
triadic
#664FCA #CA664F #4FCA66
tetradic
#664FCA #CA4F75 #B3CA4F #4FCAA4
square
#664FCA #CA4F75 #B3CA4F #4FCAA4
split-complementary
#664FCA #CAA44F #75CA4F
monochromatic
#35257A #4933A9 #664FCA #8F7ED8 #B8ADE6

Accessibility & contrast

On white

5.94
#664FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#664FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664FCA
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664FCA#FFFFFF#000000##FFFFFF
##664FCA1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#426C85
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #664fca;
/* rgb */ color: rgb(102, 79, 202);
/* oklch */ color: oklch(52.0% 0.182 286.8);
Tailwind
colors: {
  custom: {
    50: '#9981db',
    500: '#664fca',
    950: '#000000',
  },
}
SCSS
$custom: #664fca;
$custom-light: #9981db;
$custom-dark: #000000;
JSON
{
  "hex": "#664fca",
  "rgb": {
    "r": 102,
    "g": 79,
    "b": 202
  },
  "hsl": {
    "h": 251.22,
    "s": 53.712,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51955,
    "c": 0.18244,
    "h": 286.8
  },
  "luminance": 0.12681
}

Semantic roles & 50–950 ramp

primary
#664FCA
secondary
#CBD4A1
accent
#DD4BC2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0A15
muted
#7E7C83

Preview Lab

Preview with #664FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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