#6640CC#6640CC

#6640CC is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 49.9% C 0.204 H 289.3°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#6640CC
RGBrgb(102, 64, 204)
HSLhsl(256, 58%, 53%)
HSVhsv(256, 69%, 80%)
CMYKcmyk(50%, 68.6%, 0%, 20%)
CIE-LABlab(39.33, 49.76, -66.97)
CIE-LCHlch(39.33, 83.43, 306.61°)
OKLaboklab(49.87% 0.0674 -0.1922)
OKLCHoklch(49.87% 0.204 289.3)
XYZxyz(18.2088, 10.8504, 58.2499)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6640CC #A6CC40
analogous
#4060CC #6640CC #AC40CC
triadic
#6640CC #CC6640 #40CC66
tetradic
#6640CC #CC4060 #A6CC40 #40CCAC
square
#6640CC #CC4060 #A6CC40 #40CCAC
split-complementary
#6640CC #CCAC40 #60CC40
monochromatic
#361F73 #4C2CA3 #6640CC #8D70D9 #B3A1E6

Accessibility & contrast

On white

6.62
#6640CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#6640CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6640CC
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6640CC#FFFFFF#000000##FFFFFF
##6640CC1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD0
Deuteranopia (green-blind)
#0059C9
Tritanopia (blue-blind)
#426481
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6640cc;
/* rgb */ color: rgb(102, 64, 204);
/* oklch */ color: oklch(49.9% 0.204 289.3);
Tailwind
colors: {
  custom: {
    50: '#9b78dd',
    500: '#6640cc',
    950: '#000000',
  },
}
SCSS
$custom: #6640cc;
$custom-light: #9b78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6640cc",
  "rgb": {
    "r": 102,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 256.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49869,
    "c": 0.20364,
    "h": 289.3
  },
  "luminance": 0.10851
}

Semantic roles & 50–950 ramp

primary
#6640CC
secondary
#C2D295
accent
#E147B7
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6640CC

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

Preview Lab → · Contrast checker → · Palette generator →

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