#664CB2#664CB2

#664CB2 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 49.7% C 0.155 H 291.5°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#664CB2
RGBrgb(102, 76, 178)
HSLhsl(255, 40%, 50%)
HSVhsv(255, 57%, 70%)
CMYKcmyk(42.7%, 57.3%, 0%, 30.2%)
CIE-LABlab(39.93, 35.57, -50.79)
CIE-LCHlch(39.93, 62.01, 305.00°)
OKLaboklab(49.7% 0.0569 -0.1446)
OKLCHoklch(49.7% 0.155 291.5)
XYZxyz(16.0976, 11.2075, 43.4260)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664CB2 #98B24C
analogous
#4C65B2 #664CB2 #994CB2
triadic
#664CB2 #B2664C #4CB266
tetradic
#664CB2 #B24C65 #98B24C #4CB299
square
#664CB2 #B24C65 #98B24C #4CB299
split-complementary
#664CB2 #B2994C #65B24C
monochromatic
#35275C #4D3A87 #664CB2 #8A76C5 #AFA1D7

Accessibility & contrast

On white

6.48
#664CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#664CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664CB2
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664CB2#FFFFFF#000000##FFFFFF
##664CB21.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1060B5
Deuteranopia (green-blind)
#195CB0
Tritanopia (blue-blind)
#516277
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #664cb2;
/* rgb */ color: rgb(102, 76, 178);
/* oklch */ color: oklch(49.7% 0.155 291.5);
Tailwind
colors: {
  custom: {
    50: '#977fca',
    500: '#664cb2',
    950: '#000000',
  },
}
SCSS
$custom: #664cb2;
$custom-light: #977fca;
$custom-dark: #000000;
JSON
{
  "hex": "#664cb2",
  "rgb": {
    "r": 102,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 255.294,
    "s": 40.157,
    "l": 49.804
  },
  "oklch": {
    "l": 0.49699,
    "c": 0.15537,
    "h": 291.5
  },
  "luminance": 0.11208
}

Semantic roles & 50–950 ramp

primary
#664CB2
secondary
#B8C496
accent
#D058B1
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0E0A13
muted
#7E7C82

Preview Lab

Preview with #664CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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