#664EDA#664EDA

#664EDA is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.0% C 0.204 H 284.9°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#664EDA
RGBrgb(102, 78, 218)
HSLhsl(250, 65%, 58%)
HSVhsv(250, 64%, 85%)
CMYKcmyk(53.2%, 64.2%, 0%, 14.5%)
CIE-LABlab(43.26, 46.13, -68.60)
CIE-LCHlch(43.26, 82.67, 303.92°)
OKLaboklab(53.05% 0.0525 -0.197)
OKLCHoklch(53.05% 0.204 284.9)
XYZxyz(20.8550, 13.3344, 67.7910)
Luminance0.1334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#664EDA #C2DA4E
analogous
#4E7CDA #664EDA #AC4EDA
triadic
#664EDA #DA664E #4EDA66
tetradic
#664EDA #DA4E7C #C2DA4E #4EDAAC
square
#664EDA #DA4E7C #C2DA4E #4EDAAC
split-complementary
#664EDA #DAAC4E #7CDA4E
monochromatic
#311E90 #4329C2 #664EDA #9281E5 #BEB3EF

Accessibility & contrast

On white

5.73
#664EDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#664EDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #664EDA
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##664EDA#FFFFFF#000000##FFFFFF
##664EDA1.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADE
Deuteranopia (green-blind)
#0062D7
Tritanopia (blue-blind)
#35718D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #664eda;
/* rgb */ color: rgb(102, 78, 218);
/* oklch */ color: oklch(53.0% 0.204 284.9);
Tailwind
colors: {
  custom: {
    50: '#9c81e6',
    500: '#664eda',
    950: '#000000',
  },
}
SCSS
$custom: #664eda;
$custom-light: #9c81e6;
$custom-dark: #000000;
JSON
{
  "hex": "#664eda",
  "rgb": {
    "r": 102,
    "g": 78,
    "b": 218
  },
  "hsl": {
    "h": 250.286,
    "s": 65.421,
    "l": 58.039
  },
  "oklch": {
    "l": 0.53049,
    "c": 0.20384,
    "h": 284.9
  },
  "luminance": 0.13336
}

Semantic roles & 50–950 ramp

primary
#664EDA
secondary
#D4DEA6
accent
#E83FCB
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #664EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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