#6640BF#6640BF

#6640BF is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.8% C 0.188 H 291.6°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#6640BF
RGBrgb(102, 64, 191)
HSLhsl(258, 50%, 50%)
HSVhsv(258, 66%, 75%)
CMYKcmyk(46.6%, 66.5%, 0%, 25.1%)
CIE-LABlab(38.29, 46.11, -61.08)
CIE-LCHlch(38.29, 76.53, 307.05°)
OKLaboklab(48.8% 0.0694 -0.1749)
OKLCHoklch(48.8% 0.188 291.6)
XYZxyz(16.7142, 10.2526, 50.3784)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6640BF #99BF40
analogous
#4059BF #6640BF #A640BF
triadic
#6640BF #BF6640 #40BF66
tetradic
#6640BF #BF4059 #99BF40 #40BFA6
square
#6640BF #BF4059 #99BF40 #40BFA6
split-complementary
#6640BF #BFA640 #59BF40
monochromatic
#352163 #4E3191 #6640BF #8B6ECE #AF9CDE

Accessibility & contrast

On white

6.88
#6640BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#6640BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6640BF
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6640BF#FFFFFF#000000##FFFFFF
##6640BF1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#0057BC
Tritanopia (blue-blind)
#4B5F7A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6640bf;
/* rgb */ color: rgb(102, 64, 191);
/* oklch */ color: oklch(48.8% 0.188 291.6);
Tailwind
colors: {
  custom: {
    50: '#9977d3',
    500: '#6640bf',
    950: '#000000',
  },
}
SCSS
$custom: #6640bf;
$custom-light: #9977d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6640bf",
  "rgb": {
    "r": 102,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 257.953,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.48804,
    "c": 0.18812,
    "h": 291.6
  },
  "luminance": 0.10253
}

Semantic roles & 50–950 ramp

primary
#6640BF
secondary
#B9CA91
accent
#D94EB0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0914
muted
#7E7B83

Preview Lab

Preview with #6640BF

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

Preview Lab → · Contrast checker → · Palette generator →

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