#664BD9#664BD9

#664BD9 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 52.5% C 0.206 H 285.6°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#664BD9
RGBrgb(102, 75, 217)
HSLhsl(251, 65%, 57%)
HSVhsv(251, 65%, 85%)
CMYKcmyk(53%, 65.4%, 0%, 14.9%)
CIE-LABlab(42.56, 47.52, -69.18)
CIE-LCHlch(42.56, 83.92, 304.49°)
OKLaboklab(52.52% 0.0554 -0.1987)
OKLCHoklch(52.52% 0.206 285.6)
XYZxyz(20.5162, 12.8656, 67.0344)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664BD9 #BED94B
analogous
#4B77D9 #664BD9 #AD4BD9
triadic
#664BD9 #D9664B #4BD966
tetradic
#664BD9 #D94B77 #BED94B #4BD9AD
square
#664BD9 #D94B77 #BED94B #4BD9AD
split-complementary
#664BD9 #D9AD4B #77D94B
monochromatic
#331E8C #4528BF #664BD9 #917EE4 #BCB0EE

Accessibility & contrast

On white

5.88
#664BD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#664BD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664BD9
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664BD9#FFFFFF#000000##FFFFFF
##664BD91.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DD
Deuteranopia (green-blind)
#0060D6
Tritanopia (blue-blind)
#366F8B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #664bd9;
/* rgb */ color: rgb(102, 75, 217);
/* oklch */ color: oklch(52.5% 0.206 285.6);
Tailwind
colors: {
  custom: {
    50: '#9c7fe6',
    500: '#664bd9',
    950: '#000000',
  },
}
SCSS
$custom: #664bd9;
$custom-light: #9c7fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#664bd9",
  "rgb": {
    "r": 102,
    "g": 75,
    "b": 217
  },
  "hsl": {
    "h": 251.408,
    "s": 65.138,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52516,
    "c": 0.20623,
    "h": 285.6
  },
  "luminance": 0.12867
}

Semantic roles & 50–950 ramp

primary
#664BD9
secondary
#D2DDA3
accent
#E840C8
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #664BD9

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

Preview Lab → · Contrast checker → · Palette generator →

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