#664FBB#664FBB

#664FBB is a mid, vivid violet. Relative luminance 0.120; OKLCH L 50.8% C 0.163 H 289.1°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#664FBB
RGBrgb(102, 79, 187)
HSLhsl(253, 44%, 52%)
HSVhsv(253, 58%, 73%)
CMYKcmyk(45.5%, 57.8%, 0%, 26.7%)
CIE-LABlab(41.22, 36.40, -53.99)
CIE-LCHlch(41.22, 65.11, 303.99°)
OKLaboklab(50.85% 0.0533 -0.154)
OKLCHoklch(50.85% 0.163 289.1)
XYZxyz(17.2426, 12.0040, 48.4126)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664FBB #A4BB4F
analogous
#4F6EBB #664FBB #9C4FBB
triadic
#664FBB #BB664F #4FBB66
tetradic
#664FBB #BB4F6E #A4BB4F #4FBB9C
square
#664FBB #BB4F6E #A4BB4F #4FBB9C
split-complementary
#664FBB #BB9C4F #6EBB4F
monochromatic
#362868 #4C3994 #664FBB #8C7BCC #B3A7DD

Accessibility & contrast

On white

6.17
#664FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#664FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664FBB
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664FBB#FFFFFF#000000##FFFFFF
##664FBB1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0263BF
Deuteranopia (green-blind)
#095FB9
Tritanopia (blue-blind)
#4C677D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #664fbb;
/* rgb */ color: rgb(102, 79, 187);
/* oklch */ color: oklch(50.8% 0.163 289.1);
Tailwind
colors: {
  custom: {
    50: '#9781d0',
    500: '#664fbb',
    950: '#000000',
  },
}
SCSS
$custom: #664fbb;
$custom-light: #9781d0;
$custom-dark: #000000;
JSON
{
  "hex": "#664fbb",
  "rgb": {
    "r": 102,
    "g": 79,
    "b": 187
  },
  "hsl": {
    "h": 252.778,
    "s": 44.262,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50846,
    "c": 0.16295,
    "h": 289.1
  },
  "luminance": 0.12005
}

Semantic roles & 50–950 ramp

primary
#664FBB
secondary
#C0CA9B
accent
#D454B9
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0A14
muted
#7E7C82

Preview Lab

Preview with #664FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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