#6640CA#6640CA

#6640CA is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.7% C 0.201 H 289.7°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#6640CA
RGBrgb(102, 64, 202)
HSLhsl(257, 57%, 52%)
HSVhsv(257, 68%, 79%)
CMYKcmyk(49.5%, 68.3%, 0%, 20.8%)
CIE-LABlab(39.16, 49.20, -66.07)
CIE-LCHlch(39.16, 82.38, 306.67°)
OKLaboklab(49.7% 0.0677 -0.1895)
OKLCHoklch(49.7% 0.201 289.7)
XYZxyz(17.9705, 10.7551, 56.9947)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6640CA #A4CA40
analogous
#405FCA #6640CA #AB40CA
triadic
#6640CA #CA6640 #40CA66
tetradic
#6640CA #CA405F #A4CA40 #40CAAB
square
#6640CA #CA405F #A4CA40 #40CAAB
split-complementary
#6640CA #CAAB40 #5FCA40
monochromatic
#361F70 #4C2CA0 #6640CA #8C70D7 #B3A0E5

Accessibility & contrast

On white

6.66
#6640CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#6640CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6640CA
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6640CA#FFFFFF#000000##FFFFFF
##6640CA1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#0059C7
Tritanopia (blue-blind)
#446380
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6640ca;
/* rgb */ color: rgb(102, 64, 202);
/* oklch */ color: oklch(49.7% 0.201 289.7);
Tailwind
colors: {
  custom: {
    50: '#9a78db',
    500: '#6640ca',
    950: '#000000',
  },
}
SCSS
$custom: #6640ca;
$custom-light: #9a78db;
$custom-dark: #000000;
JSON
{
  "hex": "#6640ca",
  "rgb": {
    "r": 102,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 256.522,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49702,
    "c": 0.20127,
    "h": 289.7
  },
  "luminance": 0.10756
}

Semantic roles & 50–950 ramp

primary
#6640CA
secondary
#C0D195
accent
#E048B6
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6640CA

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

Preview Lab → · Contrast checker → · Palette generator →

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