#664BD5#664BD5

#664BD5 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.2% C 0.201 H 286.1°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#664BD5
RGBrgb(102, 75, 213)
HSLhsl(252, 62%, 56%)
HSVhsv(252, 65%, 84%)
CMYKcmyk(52.1%, 64.8%, 0%, 16.5%)
CIE-LABlab(42.25, 46.34, -67.39)
CIE-LCHlch(42.25, 81.79, 304.51°)
OKLaboklab(52.19% 0.0558 -0.1934)
OKLCHoklch(52.19% 0.201 286.1)
XYZxyz(20.0022, 12.6600, 64.3276)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664BD5 #BAD54B
analogous
#4B75D5 #664BD5 #AB4BD5
triadic
#664BD5 #D5664B #4BD566
tetradic
#664BD5 #D54B75 #BAD54B #4BD5AB
square
#664BD5 #D54B75 #BAD54B #4BD5AB
split-complementary
#664BD5 #D5AB4B #75D54B
monochromatic
#331F86 #462BB8 #664BD5 #907DE1 #BAAEEC

Accessibility & contrast

On white

5.95
#664BD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#664BD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664BD5
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664BD5#FFFFFF#000000##FFFFFF
##664BD51.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D9
Deuteranopia (green-blind)
#0060D2
Tritanopia (blue-blind)
#3A6D89
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #664bd5;
/* rgb */ color: rgb(102, 75, 213);
/* oklch */ color: oklch(52.2% 0.201 286.1);
Tailwind
colors: {
  custom: {
    50: '#9b7fe3',
    500: '#664bd5',
    950: '#000000',
  },
}
SCSS
$custom: #664bd5;
$custom-light: #9b7fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#664bd5",
  "rgb": {
    "r": 102,
    "g": 75,
    "b": 213
  },
  "hsl": {
    "h": 251.739,
    "s": 62.162,
    "l": 56.471
  },
  "oklch": {
    "l": 0.52192,
    "c": 0.20133,
    "h": 286.1
  },
  "luminance": 0.12661
}

Semantic roles & 50–950 ramp

primary
#664BD5
secondary
#CFDAA2
accent
#E543C5
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #664BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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