#6640CE#6640CE

#6640CE is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.0% C 0.206 H 289.0°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#6640CE
RGBrgb(102, 64, 206)
HSLhsl(256, 59%, 53%)
HSVhsv(256, 69%, 81%)
CMYKcmyk(50.5%, 68.9%, 0%, 19.2%)
CIE-LABlab(39.49, 50.32, -67.86)
CIE-LCHlch(39.49, 84.48, 306.56°)
OKLaboklab(50.04% 0.0671 -0.1948)
OKLCHoklch(50.04% 0.206 289)
XYZxyz(18.4502, 10.9470, 59.5214)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6640CE #A8CE40
analogous
#4061CE #6640CE #AD40CE
triadic
#6640CE #CE6640 #40CE66
tetradic
#6640CE #CE4061 #A8CE40 #40CEAD
square
#6640CE #CE4061 #A8CE40 #40CEAD
split-complementary
#6640CE #CEAD40 #61CE40
monochromatic
#361E75 #4C2BA6 #6640CE #8D71DA #B4A1E7

Accessibility & contrast

On white

6.58
#6640CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#6640CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6640CE
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6640CE#FFFFFF#000000##FFFFFF
##6640CE1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D2
Deuteranopia (green-blind)
#0059CB
Tritanopia (blue-blind)
#416482
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6640ce;
/* rgb */ color: rgb(102, 64, 206);
/* oklch */ color: oklch(50.0% 0.206 289.0);
Tailwind
colors: {
  custom: {
    50: '#9b78de',
    500: '#6640ce',
    950: '#000000',
  },
}
SCSS
$custom: #6640ce;
$custom-light: #9b78de;
$custom-dark: #000000;
JSON
{
  "hex": "#6640ce",
  "rgb": {
    "r": 102,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 256.056,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50036,
    "c": 0.20599,
    "h": 289
  },
  "luminance": 0.10948
}

Semantic roles & 50–950 ramp

primary
#6640CE
secondary
#C3D496
accent
#E245B8
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6640CE

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

Preview Lab → · Contrast checker → · Palette generator →

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