#664FB2#664FB2

#664FB2 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.2% C 0.151 H 290.6°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#664FB2
RGBrgb(102, 79, 178)
HSLhsl(254, 39%, 50%)
HSVhsv(254, 56%, 70%)
CMYKcmyk(42.7%, 55.6%, 0%, 30.2%)
CIE-LABlab(40.62, 33.78, -49.67)
CIE-LCHlch(40.62, 60.07, 304.22°)
OKLaboklab(50.21% 0.0532 -0.1413)
OKLCHoklch(50.21% 0.151 290.6)
XYZxyz(16.3091, 11.6306, 43.4965)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664FB2 #9BB24F
analogous
#4F6AB2 #664FB2 #974FB2
triadic
#664FB2 #B2664F #4FB266
tetradic
#664FB2 #B24F6A #9BB24F #4FB297
square
#664FB2 #B24F6A #9BB24F #4FB297
split-complementary
#664FB2 #B2974F #6AB24F
monochromatic
#35295E #4D3C88 #664FB2 #8B7AC5 #B0A4D7

Accessibility & contrast

On white

6.31
#664FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#664FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664FB2
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664FB2#FFFFFF#000000##FFFFFF
##664FB21.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C62B5
Deuteranopia (green-blind)
#205EB0
Tritanopia (blue-blind)
#506479
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #664fb2;
/* rgb */ color: rgb(102, 79, 178);
/* oklch */ color: oklch(50.2% 0.151 290.6);
Tailwind
colors: {
  custom: {
    50: '#9681ca',
    500: '#664fb2',
    950: '#000000',
  },
}
SCSS
$custom: #664fb2;
$custom-light: #9681ca;
$custom-dark: #000000;
JSON
{
  "hex": "#664fb2",
  "rgb": {
    "r": 102,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 253.939,
    "s": 39.13,
    "l": 50.392
  },
  "oklch": {
    "l": 0.50212,
    "c": 0.15099,
    "h": 290.6
  },
  "luminance": 0.11631
}

Semantic roles & 50–950 ramp

primary
#664FB2
secondary
#BAC498
accent
#CF59B4
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0E0A13
muted
#7E7C82

Preview Lab

Preview with #664FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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