#6640DF#6640DF

#6640DF is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.5% C 0.226 H 286.4°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#6640DF
RGBrgb(102, 64, 223)
HSLhsl(254, 71%, 56%)
HSVhsv(254, 71%, 87%)
CMYKcmyk(54.3%, 71.3%, 0%, 12.5%)
CIE-LABlab(40.93, 55.11, -75.28)
CIE-LCHlch(40.93, 93.29, 306.21°)
OKLaboklab(51.5% 0.0638 -0.2165)
OKLCHoklch(51.5% 0.226 286.4)
XYZxyz(20.6282, 11.8182, 70.9919)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6640DF #B9DF40
analogous
#406ADF #6640DF #B640DF
triadic
#6640DF #DF6640 #40DF66
tetradic
#6640DF #DF406A #B9DF40 #40DFB6
square
#6640DF #DF406A #B9DF40 #40DFB6
split-complementary
#6640DF #DFB640 #6ADF40
monochromatic
#34188D #4720C1 #6640DF #9074E8 #BAA9F1

Accessibility & contrast

On white

6.24
#6640DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6640DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6640DF
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6640DF#FFFFFF#000000##FFFFFF
##6640DF1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E4
Deuteranopia (green-blind)
#005CDC
Tritanopia (blue-blind)
#316B8C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6640df;
/* rgb */ color: rgb(102, 64, 223);
/* oklch */ color: oklch(51.5% 0.226 286.4);
Tailwind
colors: {
  custom: {
    50: '#9d78ea',
    500: '#6640df',
    950: '#000000',
  },
}
SCSS
$custom: #6640df;
$custom-light: #9d78ea;
$custom-dark: #000000;
JSON
{
  "hex": "#6640df",
  "rgb": {
    "r": 102,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 254.34,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51499,
    "c": 0.22574,
    "h": 286.4
  },
  "luminance": 0.11819
}

Semantic roles & 50–950 ramp

primary
#6640DF
secondary
#CEDE9D
accent
#EE3AC3
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6640DF

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

Preview Lab → · Contrast checker → · Palette generator →

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