#664BC2#664BC2

#664BC2 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 50.7% C 0.178 H 288.9°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#664BC2
RGBrgb(102, 75, 194)
HSLhsl(254, 49%, 53%)
HSVhsv(254, 61%, 76%)
CMYKcmyk(47.4%, 61.3%, 0%, 23.9%)
CIE-LABlab(40.82, 40.79, -58.73)
CIE-LCHlch(40.82, 71.50, 304.78°)
OKLaboklab(50.71% 0.0575 -0.168)
OKLCHoklch(50.71% 0.178 288.9)
XYZxyz(17.7304, 11.7513, 52.3625)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664BC2 #A7C24B
analogous
#4B6CC2 #664BC2 #A14BC2
triadic
#664BC2 #C2664B #4BC266
tetradic
#664BC2 #C24B6C #A7C24B #4BC2A1
square
#664BC2 #C24B6C #A7C24B #4BC2A1
split-complementary
#664BC2 #C2A14B #6CC24B
monochromatic
#36256D #4C359B #664BC2 #8D79D1 #B4A6E1

Accessibility & contrast

On white

6.27
#664BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#664BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664BC2
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664BC2#FFFFFF#000000##FFFFFF
##664BC21.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#005DC0
Tritanopia (blue-blind)
#48677F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #664bc2;
/* rgb */ color: rgb(102, 75, 194);
/* oklch */ color: oklch(50.7% 0.178 288.9);
Tailwind
colors: {
  custom: {
    50: '#997ed5',
    500: '#664bc2',
    950: '#000000',
  },
}
SCSS
$custom: #664bc2;
$custom-light: #997ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#664bc2",
  "rgb": {
    "r": 102,
    "g": 75,
    "b": 194
  },
  "hsl": {
    "h": 253.613,
    "s": 49.378,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50705,
    "c": 0.17753,
    "h": 288.9
  },
  "luminance": 0.11752
}

Semantic roles & 50–950 ramp

primary
#664BC2
secondary
#C2CE9B
accent
#D94FBA
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #664BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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