#6640D2#6640D2

#6640D2 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.4% C 0.211 H 288.4°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#6640D2
RGBrgb(102, 64, 210)
HSLhsl(256, 62%, 54%)
HSVhsv(256, 70%, 82%)
CMYKcmyk(51.4%, 69.5%, 0%, 17.6%)
CIE-LABlab(39.82, 51.45, -69.63)
CIE-LCHlch(39.82, 86.57, 306.46°)
OKLaboklab(50.38% 0.0664 -0.2)
OKLCHoklch(50.38% 0.211 288.4)
XYZxyz(18.9423, 11.1438, 62.1131)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6640D2 #ACD240
analogous
#4063D2 #6640D2 #AF40D2
triadic
#6640D2 #D26640 #40D266
tetradic
#6640D2 #D24063 #ACD240 #40D2AF
square
#6640D2 #D24063 #ACD240 #40D2AF
split-complementary
#6640D2 #D2AF40 #63D240
monochromatic
#351D7B #4B29AC #6640D2 #8E72DE #B5A3E9

Accessibility & contrast

On white

6.50
#6640D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#6640D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6640D2
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6640D2#FFFFFF#000000##FFFFFF
##6640D21.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D6
Deuteranopia (green-blind)
#005ACF
Tritanopia (blue-blind)
#3E6684
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6640d2;
/* rgb */ color: rgb(102, 64, 210);
/* oklch */ color: oklch(50.4% 0.211 288.4);
Tailwind
colors: {
  custom: {
    50: '#9b78e1',
    500: '#6640d2',
    950: '#000000',
  },
}
SCSS
$custom: #6640d2;
$custom-light: #9b78e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6640d2",
  "rgb": {
    "r": 102,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 255.616,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50375,
    "c": 0.21068,
    "h": 288.4
  },
  "luminance": 0.11145
}

Semantic roles & 50–950 ramp

primary
#6640D2
secondary
#C6D698
accent
#E543BB
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6640D2

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

Preview Lab → · Contrast checker → · Palette generator →

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