#664AEB#664AEB

#664AEB is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 53.9% C 0.229 H 283.5°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#664AEB
RGBrgb(102, 74, 235)
HSLhsl(250, 80%, 61%)
HSVhsv(250, 69%, 92%)
CMYKcmyk(56.6%, 68.5%, 0%, 7.8%)
CIE-LABlab(43.83, 53.34, -77.34)
CIE-LCHlch(43.83, 93.94, 304.59°)
OKLaboklab(53.88% 0.0536 -0.2226)
OKLCHoklch(53.88% 0.229 283.5)
XYZxyz(22.9191, 13.7191, 80.0215)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664AEB #CFEB4A
analogous
#4A7EEB #664AEB #B74AEB
triadic
#664AEB #EB664A #4AEB66
tetradic
#664AEB #EB4A7E #CFEB4A #4AEBB7
square
#664AEB #EB4A7E #CFEB4A #4AEBB7
split-complementary
#664AEB #EBB74A #7EEB4A
monochromatic
#2D13A8 #3B19DF #664AEB #9581F1 #C3B8F7

Accessibility & contrast

On white

5.61
#664AEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#664AEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664AEB
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664AEB#FFFFFF#000000##FFFFFF
##664AEB1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DF0
Deuteranopia (green-blind)
#0062E8
Tritanopia (blue-blind)
#1E7495
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #664aeb;
/* rgb */ color: rgb(102, 74, 235);
/* oklch */ color: oklch(53.9% 0.229 283.5);
Tailwind
colors: {
  custom: {
    50: '#9e7ff3',
    500: '#664aeb',
    950: '#000000',
  },
}
SCSS
$custom: #664aeb;
$custom-light: #9e7ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#664aeb",
  "rgb": {
    "r": 102,
    "g": 74,
    "b": 235
  },
  "hsl": {
    "h": 250.435,
    "s": 80.1,
    "l": 60.588
  },
  "oklch": {
    "l": 0.53881,
    "c": 0.22897,
    "h": 283.5
  },
  "luminance": 0.1372
}

Semantic roles & 50–950 ramp

primary
#664AEB
secondary
#DCE7AA
accent
#DC09B8
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100A17
muted
#7F7C85

Preview Lab

Preview with #664AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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