#6640CB#6640CB

#6640CB is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.8% C 0.202 H 289.5°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#6640CB
RGBrgb(102, 64, 203)
HSLhsl(256, 57%, 52%)
HSVhsv(256, 68%, 80%)
CMYKcmyk(49.8%, 68.5%, 0%, 20.4%)
CIE-LABlab(39.25, 49.48, -66.52)
CIE-LCHlch(39.25, 82.90, 306.64°)
OKLaboklab(49.79% 0.0676 -0.1908)
OKLCHoklch(49.79% 0.202 289.5)
XYZxyz(18.0893, 10.8026, 57.6203)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6640CB #A5CB40
analogous
#405FCB #6640CB #AC40CB
triadic
#6640CB #CB6640 #40CB66
tetradic
#6640CB #CB405F #A5CB40 #40CBAC
square
#6640CB #CB405F #A5CB40 #40CBAC
split-complementary
#6640CB #CBAC40 #5FCB40
monochromatic
#361F72 #4C2CA2 #6640CB #8D70D8 #B3A0E5

Accessibility & contrast

On white

6.64
#6640CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#6640CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6640CB
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6640CB#FFFFFF#000000##FFFFFF
##6640CB1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCF
Deuteranopia (green-blind)
#0059C8
Tritanopia (blue-blind)
#436380
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6640cb;
/* rgb */ color: rgb(102, 64, 203);
/* oklch */ color: oklch(49.8% 0.202 289.5);
Tailwind
colors: {
  custom: {
    50: '#9a78dc',
    500: '#6640cb',
    950: '#000000',
  },
}
SCSS
$custom: #6640cb;
$custom-light: #9a78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6640cb",
  "rgb": {
    "r": 102,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 256.403,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49785,
    "c": 0.20245,
    "h": 289.5
  },
  "luminance": 0.10803
}

Semantic roles & 50–950 ramp

primary
#6640CB
secondary
#C1D295
accent
#E047B7
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6640CB

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

Preview Lab → · Contrast checker → · Palette generator →

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