#6642FF#6642FF

#6642FF is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.6% C 0.260 H 282.3°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#6642FF
RGBrgb(102, 66, 255)
HSLhsl(251, 100%, 63%)
HSVhsv(251, 74%, 100%)
CMYKcmyk(60%, 74.1%, 0%, 0%)
CIE-LABlab(44.15, 63.11, -88.04)
CIE-LCHlch(44.15, 108.32, 305.64°)
OKLaboklab(54.64% 0.0552 -0.2539)
OKLCHoklch(54.64% 0.26 282.3)
XYZxyz(25.4721, 13.9394, 95.9367)
Luminance0.1394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642FF #DBFF42
analogous
#427CFF #6642FF #C542FF
triadic
#6642FF #FF6642 #42FF66
tetradic
#6642FF #FF427C #DBFF42 #42FFC5
square
#6642FF #FF427C #DBFF42 #42FFC5
split-complementary
#6642FF #FFC542 #7CFF42
monochromatic
#2600C7 #3405FF #6642FF #987FFF #C9BCFF

Accessibility & contrast

On white

5.54
#6642FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#6642FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6642FF
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642FF#FFFFFF#000000##FFFFFF
##6642FF1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EFF
Deuteranopia (green-blind)
#0062FC
Tritanopia (blue-blind)
#00789E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #6642ff;
/* rgb */ color: rgb(102, 66, 255);
/* oklch */ color: oklch(54.6% 0.260 282.3);
Tailwind
colors: {
  custom: {
    50: '#a27bff',
    500: '#6642ff',
    950: '#000000',
  },
}
SCSS
$custom: #6642ff;
$custom-light: #a27bff;
$custom-dark: #000000;
JSON
{
  "hex": "#6642ff",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 255
  },
  "hsl": {
    "h": 251.429,
    "s": 100,
    "l": 62.941
  },
  "oklch": {
    "l": 0.54644,
    "c": 0.25981,
    "h": 282.3
  },
  "luminance": 0.13941
}

Semantic roles & 50–950 ramp

primary
#6642FF
secondary
#E3F0AC
accent
#E600BA
background
#FBF7FF
surface
#F5EEFF
border
#CFC9D7
text
#110A18
muted
#807C86

Preview Lab

Preview with #6642FF

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

Preview Lab → · Contrast checker → · Palette generator →

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