#6640CF#6640CF

#6640CF is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.1% C 0.207 H 288.8°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#6640CF
RGBrgb(102, 64, 207)
HSLhsl(256, 60%, 53%)
HSVhsv(256, 69%, 81%)
CMYKcmyk(50.7%, 69.1%, 0%, 18.8%)
CIE-LABlab(39.57, 50.60, -68.30)
CIE-LCHlch(39.57, 85.00, 306.53°)
OKLaboklab(50.12% 0.0669 -0.1961)
OKLCHoklch(50.12% 0.207 288.8)
XYZxyz(18.5721, 10.9957, 60.1632)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6640CF #A9CF40
analogous
#4061CF #6640CF #AD40CF
triadic
#6640CF #CF6640 #40CF66
tetradic
#6640CF #CF4061 #A9CF40 #40CFAD
square
#6640CF #CF4061 #A9CF40 #40CFAD
split-complementary
#6640CF #CFAD40 #61CF40
monochromatic
#351E77 #4B2AA8 #6640CF #8D71DB #B4A2E8

Accessibility & contrast

On white

6.56
#6640CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#6640CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6640CF
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6640CF#FFFFFF#000000##FFFFFF
##6640CF1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D3
Deuteranopia (green-blind)
#005ACC
Tritanopia (blue-blind)
#406583
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6640cf;
/* rgb */ color: rgb(102, 64, 207);
/* oklch */ color: oklch(50.1% 0.207 288.8);
Tailwind
colors: {
  custom: {
    50: '#9b78df',
    500: '#6640cf',
    950: '#000000',
  },
}
SCSS
$custom: #6640cf;
$custom-light: #9b78df;
$custom-dark: #000000;
JSON
{
  "hex": "#6640cf",
  "rgb": {
    "r": 102,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 255.944,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50121,
    "c": 0.20717,
    "h": 288.8
  },
  "luminance": 0.10997
}

Semantic roles & 50–950 ramp

primary
#6640CF
secondary
#C4D497
accent
#E345B9
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6640CF

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

Preview Lab → · Contrast checker → · Palette generator →

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