#6642BD#6642BD

#6642BD is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.9% C 0.183 H 291.6°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#6642BD
RGBrgb(102, 66, 189)
HSLhsl(258, 48%, 50%)
HSVhsv(258, 65%, 74%)
CMYKcmyk(46%, 65.1%, 0%, 25.9%)
CIE-LABlab(38.54, 44.45, -59.50)
CIE-LCHlch(38.54, 74.27, 306.76°)
OKLaboklab(48.94% 0.0675 -0.1702)
OKLCHoklch(48.94% 0.183 291.6)
XYZxyz(16.6105, 10.3948, 49.2654)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6642BD #99BD42
analogous
#425CBD #6642BD #A342BD
triadic
#6642BD #BD6642 #42BD66
tetradic
#6642BD #BD425C #99BD42 #42BDA3
square
#6642BD #BD425C #99BD42 #42BDA3
split-complementary
#6642BD #BDA342 #5CBD42
monochromatic
#352262 #4E3290 #6642BD #8B6FCD #AF9DDD

Accessibility & contrast

On white

6.82
#6642BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#6642BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6642BD
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6642BD#FFFFFF#000000##FFFFFF
##6642BD1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#4C5F7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6642bd;
/* rgb */ color: rgb(102, 66, 189);
/* oklch */ color: oklch(48.9% 0.183 291.6);
Tailwind
colors: {
  custom: {
    50: '#9978d2',
    500: '#6642bd',
    950: '#000000',
  },
}
SCSS
$custom: #6642bd;
$custom-light: #9978d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6642bd",
  "rgb": {
    "r": 102,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 257.561,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.48936,
    "c": 0.18314,
    "h": 291.6
  },
  "luminance": 0.10395
}

Semantic roles & 50–950 ramp

primary
#6642BD
secondary
#B9C992
accent
#D850B0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6642BD

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

Preview Lab → · Contrast checker → · Palette generator →

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