#6640BA#6640BA

#6640BA is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.4% C 0.182 H 292.6°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#6640BA
RGBrgb(102, 64, 186)
HSLhsl(259, 49%, 49%)
HSVhsv(259, 66%, 73%)
CMYKcmyk(45.2%, 65.6%, 0%, 27.1%)
CIE-LABlab(37.91, 44.71, -58.77)
CIE-LCHlch(37.91, 73.85, 307.26°)
OKLaboklab(48.41% 0.07 -0.1681)
OKLCHoklch(48.41% 0.182 292.6)
XYZxyz(16.1734, 10.0362, 47.5299)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6640BA #94BA40
analogous
#4057BA #6640BA #A340BA
triadic
#6640BA #BA6640 #40BA66
tetradic
#6640BA #BA4057 #94BA40 #40BAA3
square
#6640BA #BA4057 #94BA40 #40BAA3
split-complementary
#6640BA #BAA340 #57BA40
monochromatic
#34215F #4D308C #6640BA #896BCC #AE99DC

Accessibility & contrast

On white

6.98
#6640BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#6640BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6640BA
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6640BA#FFFFFF#000000##FFFFFF
##6640BA1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#0057B7
Tritanopia (blue-blind)
#4D5D77
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6640ba;
/* rgb */ color: rgb(102, 64, 186);
/* oklch */ color: oklch(48.4% 0.182 292.6);
Tailwind
colors: {
  custom: {
    50: '#9877d0',
    500: '#6640ba',
    950: '#000000',
  },
}
SCSS
$custom: #6640ba;
$custom-light: #9877d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6640ba",
  "rgb": {
    "r": 102,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 258.689,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.48406,
    "c": 0.18207,
    "h": 292.6
  },
  "luminance": 0.10037
}

Semantic roles & 50–950 ramp

primary
#6640BA
secondary
#B6C88E
accent
#D84FAE
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6640BA

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

Preview Lab → · Contrast checker → · Palette generator →

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