#664AEF#664AEF

#664AEF is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.2% C 0.234 H 283.1°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#664AEF
RGBrgb(102, 74, 239)
HSLhsl(250, 84%, 61%)
HSVhsv(250, 69%, 94%)
CMYKcmyk(57.3%, 69%, 0%, 6.3%)
CIE-LABlab(44.17, 54.50, -79.04)
CIE-LCHlch(44.17, 96.01, 304.59°)
OKLaboklab(54.23% 0.053 -0.2276)
OKLCHoklch(54.23% 0.234 283.1)
XYZxyz(23.5034, 13.9528, 83.0993)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664AEF #D3EF4A
analogous
#4A81EF #664AEF #B94AEF
triadic
#664AEF #EF664A #4AEF66
tetradic
#664AEF #EF4A81 #D3EF4A #4AEFB9
square
#664AEF #EF4A81 #D3EF4A #4AEFB9
split-complementary
#664AEF #EFB94A #81EF4A
monochromatic
#2B0FAF #3814E7 #664AEF #9682F4 #C5BAF9

Accessibility & contrast

On white

5.54
#664AEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#664AEF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664AEF
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664AEF#FFFFFF#000000##FFFFFF
##664AEF1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EF4
Deuteranopia (green-blind)
#0063EC
Tritanopia (blue-blind)
#157697
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #664aef;
/* rgb */ color: rgb(102, 74, 239);
/* oklch */ color: oklch(54.2% 0.234 283.1);
Tailwind
colors: {
  custom: {
    50: '#9f7ff5',
    500: '#664aef',
    950: '#000000',
  },
}
SCSS
$custom: #664aef;
$custom-light: #9f7ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#664aef",
  "rgb": {
    "r": 102,
    "g": 74,
    "b": 239
  },
  "hsl": {
    "h": 250.182,
    "s": 83.756,
    "l": 61.373
  },
  "oklch": {
    "l": 0.54226,
    "c": 0.23367,
    "h": 283.1
  },
  "luminance": 0.13954
}

Semantic roles & 50–950 ramp

primary
#664AEF
secondary
#DFE9AC
accent
#E005BB
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100A17
muted
#7F7C85

Preview Lab

Preview with #664AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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