#6642D9#6642D9

#6642D9 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.217 H 287.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#6642D9
RGBrgb(102, 66, 217)
HSLhsl(254, 67%, 55%)
HSVhsv(254, 70%, 85%)
CMYKcmyk(53%, 69.6%, 0%, 14.9%)
CIE-LABlab(40.78, 52.38, -72.08)
CIE-LCHlch(40.78, 89.10, 306.01°)
OKLaboklab(51.24% 0.0634 -0.2072)
OKLCHoklch(51.24% 0.217 287)
XYZxyz(19.9484, 11.7299, 66.8452)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642D9 #B5D942
analogous
#4269D9 #6642D9 #B242D9
triadic
#6642D9 #D96642 #42D966
tetradic
#6642D9 #D94269 #B5D942 #42D9B2
square
#6642D9 #D94269 #B5D942 #42D9B2
split-complementary
#6642D9 #D9B242 #69D942
monochromatic
#341B86 #4825B9 #6642D9 #8F75E3 #B8A8ED

Accessibility & contrast

On white

6.28
#6642D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#6642D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6642D9
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642D9#FFFFFF#000000##FFFFFF
##6642D91.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DE
Deuteranopia (green-blind)
#005CD6
Tritanopia (blue-blind)
#376A89
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6642d9;
/* rgb */ color: rgb(102, 66, 217);
/* oklch */ color: oklch(51.2% 0.217 287.0);
Tailwind
colors: {
  custom: {
    50: '#9c79e6',
    500: '#6642d9',
    950: '#000000',
  },
}
SCSS
$custom: #6642d9;
$custom-light: #9c79e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6642d9",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 254.305,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51241,
    "c": 0.21663,
    "h": 287
  },
  "luminance": 0.11731
}

Semantic roles & 50–950 ramp

primary
#6642D9
secondary
#CCDB9C
accent
#E93EC1
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6642D9

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

Preview Lab → · Contrast checker → · Palette generator →

#6642D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva