#664BDF#664BDF

#664BDF is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.0% C 0.214 H 284.8°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#664BDF
RGBrgb(102, 75, 223)
HSLhsl(251, 70%, 58%)
HSVhsv(251, 66%, 87%)
CMYKcmyk(54.3%, 66.4%, 0%, 12.5%)
CIE-LABlab(43.04, 49.28, -71.82)
CIE-LCHlch(43.04, 87.10, 304.46°)
OKLaboklab(53.01% 0.0546 -0.2064)
OKLCHoklch(53.01% 0.214 284.8)
XYZxyz(21.3108, 13.1834, 71.2195)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664BDF #C4DF4B
analogous
#4B7ADF #664BDF #B04BDF
triadic
#664BDF #DF664B #4BDF66
tetradic
#664BDF #DF4B7A #C4DF4B #4BDFB0
square
#664BDF #DF4B7A #C4DF4B #4BDFB0
split-complementary
#664BDF #DFB04B #7ADF4B
monochromatic
#311B95 #4224C9 #664BDF #927FE8 #BEB3F1

Accessibility & contrast

On white

5.77
#664BDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#664BDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664BDF
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664BDF#FFFFFF#000000##FFFFFF
##664BDF1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE4
Deuteranopia (green-blind)
#0061DC
Tritanopia (blue-blind)
#30718F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #664bdf;
/* rgb */ color: rgb(102, 75, 223);
/* oklch */ color: oklch(53.0% 0.214 284.8);
Tailwind
colors: {
  custom: {
    50: '#9c7fea',
    500: '#664bdf',
    950: '#000000',
  },
}
SCSS
$custom: #664bdf;
$custom-light: #9c7fea;
$custom-dark: #000000;
JSON
{
  "hex": "#664bdf",
  "rgb": {
    "r": 102,
    "g": 75,
    "b": 223
  },
  "hsl": {
    "h": 250.946,
    "s": 69.811,
    "l": 58.431
  },
  "oklch": {
    "l": 0.5301,
    "c": 0.21352,
    "h": 284.8
  },
  "luminance": 0.13185
}

Semantic roles & 50–950 ramp

primary
#664BDF
secondary
#D6E0A6
accent
#ED3BCC
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #664BDF

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

Preview Lab → · Contrast checker → · Palette generator →

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