#6640CD#6640CD

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

Color values

HEX#6640CD
RGBrgb(102, 64, 205)
HSLhsl(256, 59%, 53%)
HSVhsv(256, 69%, 80%)
CMYKcmyk(50.2%, 68.8%, 0%, 19.6%)
CIE-LABlab(39.41, 50.04, -67.41)
CIE-LCHlch(39.41, 83.95, 306.59°)
OKLaboklab(49.95% 0.0672 -0.1935)
OKLCHoklch(49.95% 0.205 289.2)
XYZxyz(18.3291, 10.8985, 58.8836)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6640CD #A7CD40
analogous
#4061CD #6640CD #AC40CD
triadic
#6640CD #CD6640 #40CD66
tetradic
#6640CD #CD4061 #A7CD40 #40CDAC
square
#6640CD #CD4061 #A7CD40 #40CDAC
split-complementary
#6640CD #CDAC40 #61CD40
monochromatic
#361E74 #4C2BA5 #6640CD #8D71DA #B4A1E6

Accessibility & contrast

On white

6.60
#6640CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#6640CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6640CD
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6640CD#FFFFFF#000000##FFFFFF
##6640CD1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#0059CA
Tritanopia (blue-blind)
#426482
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6640cd;
/* rgb */ color: rgb(102, 64, 205);
/* oklch */ color: oklch(50.0% 0.205 289.2);
Tailwind
colors: {
  custom: {
    50: '#9b78dd',
    500: '#6640cd',
    950: '#000000',
  },
}
SCSS
$custom: #6640cd;
$custom-light: #9b78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6640cd",
  "rgb": {
    "r": 102,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 256.17,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49952,
    "c": 0.20481,
    "h": 289.2
  },
  "luminance": 0.10899
}

Semantic roles & 50–950 ramp

primary
#6640CD
secondary
#C2D396
accent
#E246B8
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6640CD

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

Preview Lab → · Contrast checker → · Palette generator →

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