#6642DF#6642DF

#6642DF is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.8% C 0.224 H 286.2°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#6642DF
RGBrgb(102, 66, 223)
HSLhsl(254, 71%, 57%)
HSVhsv(254, 70%, 87%)
CMYKcmyk(54.3%, 70.4%, 0%, 12.5%)
CIE-LABlab(41.29, 54.09, -74.68)
CIE-LCHlch(41.29, 92.21, 305.91°)
OKLaboklab(51.76% 0.0622 -0.2148)
OKLCHoklch(51.76% 0.224 286.2)
XYZxyz(20.7430, 12.0478, 71.0302)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642DF #BBDF42
analogous
#426DDF #6642DF #B542DF
triadic
#6642DF #DF6642 #42DF66
tetradic
#6642DF #DF426D #BBDF42 #42DFB5
square
#6642DF #DF426D #BBDF42 #42DFB5
split-complementary
#6642DF #DFB542 #6DDF42
monochromatic
#33188E #4621C3 #6642DF #9076E8 #BBABF1

Accessibility & contrast

On white

6.16
#6642DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#6642DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6642DF
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642DF#FFFFFF#000000##FFFFFF
##6642DF1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E4
Deuteranopia (green-blind)
#005DDC
Tritanopia (blue-blind)
#316C8C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6642df;
/* rgb */ color: rgb(102, 66, 223);
/* oklch */ color: oklch(51.8% 0.224 286.2);
Tailwind
colors: {
  custom: {
    50: '#9d7aea',
    500: '#6642df',
    950: '#000000',
  },
}
SCSS
$custom: #6642df;
$custom-light: #9d7aea;
$custom-dark: #000000;
JSON
{
  "hex": "#6642df",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 253.758,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51759,
    "c": 0.22361,
    "h": 286.2
  },
  "luminance": 0.12049
}

Semantic roles & 50–950 ramp

primary
#6642DF
secondary
#D0DF9E
accent
#EE3AC5
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6642DF

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

Preview Lab → · Contrast checker → · Palette generator →

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