#6640C8#6640C8

#6640C8 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.5% C 0.199 H 290.0°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#6640C8
RGBrgb(102, 64, 200)
HSLhsl(257, 55%, 52%)
HSVhsv(257, 68%, 78%)
CMYKcmyk(49%, 68%, 0%, 21.6%)
CIE-LABlab(39.00, 48.63, -65.17)
CIE-LCHlch(39.00, 81.32, 306.73°)
OKLaboklab(49.54% 0.0681 -0.1869)
OKLCHoklch(49.54% 0.199 290)
XYZxyz(17.7352, 10.6610, 55.7557)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6640C8 #A2C840
analogous
#405EC8 #6640C8 #AA40C8
triadic
#6640C8 #C86640 #40C866
tetradic
#6640C8 #C8405E #A2C840 #40C8AA
square
#6640C8 #C8405E #A2C840 #40C8AA
split-complementary
#6640C8 #C8AA40 #5EC840
monochromatic
#36206E #4D2D9D #6640C8 #8C70D6 #B29FE3

Accessibility & contrast

On white

6.70
#6640C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#6640C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6640C8
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6640C8#FFFFFF#000000##FFFFFF
##6640C81.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0059C5
Tritanopia (blue-blind)
#45627F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6640c8;
/* rgb */ color: rgb(102, 64, 200);
/* oklch */ color: oklch(49.5% 0.199 290.0);
Tailwind
colors: {
  custom: {
    50: '#9a78da',
    500: '#6640c8',
    950: '#000000',
  },
}
SCSS
$custom: #6640c8;
$custom-light: #9a78da;
$custom-dark: #000000;
JSON
{
  "hex": "#6640c8",
  "rgb": {
    "r": 102,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 256.765,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49536,
    "c": 0.19889,
    "h": 290
  },
  "luminance": 0.10662
}

Semantic roles & 50–950 ramp

primary
#6640C8
secondary
#BFD094
accent
#DF49B5
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6640C8

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

Preview Lab → · Contrast checker → · Palette generator →

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