#6340BB#6340BB

#6340BB is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.2% C 0.183 H 291.0°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#6340BB
RGBrgb(99, 64, 187)
HSLhsl(257, 49%, 49%)
HSVhsv(257, 66%, 73%)
CMYKcmyk(47.1%, 65.8%, 0%, 26.7%)
CIE-LABlab(37.67, 44.41, -59.75)
CIE-LCHlch(37.67, 74.45, 306.62°)
OKLaboklab(48.19% 0.0657 -0.1711)
OKLCHoklch(48.19% 0.183 291)
XYZxyz(15.9461, 9.9067, 48.0761)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340BB #98BB40
analogous
#405BBB #6340BB #A140BB
triadic
#6340BB #BB6340 #40BB63
tetradic
#6340BB #BB405B #98BB40 #40BBA1
square
#6340BB #BB405B #98BB40 #40BBA1
split-complementary
#6340BB #BBA140 #5BBB40
monochromatic
#332160 #4B308D #6340BB #876CCD #AC99DC

Accessibility & contrast

On white

7.04
#6340BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#6340BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6340BB
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340BB#FFFFFF#000000##FFFFFF
##6340BB1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#475E78
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6340bb;
/* rgb */ color: rgb(99, 64, 187);
/* oklch */ color: oklch(48.2% 0.183 291.0);
Tailwind
colors: {
  custom: {
    50: '#9777d0',
    500: '#6340bb',
    950: '#000000',
  },
}
SCSS
$custom: #6340bb;
$custom-light: #9777d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6340bb",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 257.073,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.48189,
    "c": 0.18324,
    "h": 291
  },
  "luminance": 0.09907
}

Semantic roles & 50–950 ramp

primary
#6340BB
secondary
#B8C88F
accent
#D94FB1
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6340BB

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

Preview Lab → · Contrast checker → · Palette generator →

#6340BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva