#6640E7#6640E7

#6640E7 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.2% C 0.235 H 285.3°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#6640E7
RGBrgb(102, 64, 231)
HSLhsl(254, 78%, 58%)
HSVhsv(254, 72%, 91%)
CMYKcmyk(55.8%, 72.3%, 0%, 9.4%)
CIE-LABlab(41.63, 57.36, -78.68)
CIE-LCHlch(41.63, 97.37, 306.09°)
OKLaboklab(52.21% 0.0621 -0.2265)
OKLCHoklch(52.21% 0.235 285.3)
XYZxyz(21.7323, 12.2598, 76.8070)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6640E7 #C1E740
analogous
#406DE7 #6640E7 #BA40E7
triadic
#6640E7 #E76640 #40E766
tetradic
#6640E7 #E7406D #C1E740 #40E7BA
square
#6640E7 #E7406D #C1E740 #40E7BA
split-complementary
#6640E7 #E7BA40 #6DE740
monochromatic
#321399 #431AD0 #6640E7 #9276EE #BDADF5

Accessibility & contrast

On white

6.08
#6640E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#6640E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6640E7
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6640E7#FFFFFF#000000##FFFFFF
##6640E71.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EC
Deuteranopia (green-blind)
#005DE4
Tritanopia (blue-blind)
#276E90
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6640e7;
/* rgb */ color: rgb(102, 64, 231);
/* oklch */ color: oklch(52.2% 0.235 285.3);
Tailwind
colors: {
  custom: {
    50: '#9e79f0',
    500: '#6640e7',
    950: '#000000',
  },
}
SCSS
$custom: #6640e7;
$custom-light: #9e79f0;
$custom-dark: #000000;
JSON
{
  "hex": "#6640e7",
  "rgb": {
    "r": 102,
    "g": 64,
    "b": 231
  },
  "hsl": {
    "h": 253.653,
    "s": 77.674,
    "l": 57.843
  },
  "oklch": {
    "l": 0.52209,
    "c": 0.23486,
    "h": 285.3
  },
  "luminance": 0.12261
}

Semantic roles & 50–950 ramp

primary
#6640E7
secondary
#D4E3A0
accent
#F434C8
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6640E7

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

Preview Lab → · Contrast checker → · Palette generator →

#6640E7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva