#664FAF#664FAF

#664FAF is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.0% C 0.147 H 291.2°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#664FAF
RGBrgb(102, 79, 175)
HSLhsl(254, 38%, 50%)
HSVhsv(254, 55%, 69%)
CMYKcmyk(41.7%, 54.9%, 0%, 31.4%)
CIE-LABlab(40.43, 32.91, -48.21)
CIE-LCHlch(40.43, 58.38, 304.32°)
OKLaboklab(50.01% 0.0531 -0.137)
OKLCHoklch(50.01% 0.147 291.2)
XYZxyz(16.0112, 11.5114, 41.9275)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664FAF #98AF4F
analogous
#4F68AF #664FAF #964FAF
triadic
#664FAF #AF664F #4FAF66
tetradic
#664FAF #AF4F68 #98AF4F #4FAF96
square
#664FAF #AF4F68 #98AF4F #4FAF96
split-complementary
#664FAF #AF964F #68AF4F
monochromatic
#35295B #4D3C85 #664FAF #8A79C2 #AFA3D5

Accessibility & contrast

On white

6.36
#664FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#664FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664FAF
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664FAF#FFFFFF#000000##FFFFFF
##664FAF1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2061B2
Deuteranopia (green-blind)
#255DAD
Tritanopia (blue-blind)
#526377
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #664faf;
/* rgb */ color: rgb(102, 79, 175);
/* oklch */ color: oklch(50.0% 0.147 291.2);
Tailwind
colors: {
  custom: {
    50: '#9681c7',
    500: '#664faf',
    950: '#000000',
  },
}
SCSS
$custom: #664faf;
$custom-light: #9681c7;
$custom-dark: #000000;
JSON
{
  "hex": "#664faf",
  "rgb": {
    "r": 102,
    "g": 79,
    "b": 175
  },
  "hsl": {
    "h": 254.375,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50006,
    "c": 0.14695,
    "h": 291.2
  },
  "luminance": 0.11512
}

Semantic roles & 50–950 ramp

primary
#664FAF
secondary
#B8C397
accent
#CE5AB2
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0E0A13
muted
#7E7C82

Preview Lab

Preview with #664FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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