#6340BC#6340BC

#6340BC is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.3% C 0.184 H 290.8°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#6340BC
RGBrgb(99, 64, 188)
HSLhsl(257, 49%, 49%)
HSVhsv(257, 66%, 74%)
CMYKcmyk(47.3%, 66%, 0%, 26.3%)
CIE-LABlab(37.75, 44.69, -60.21)
CIE-LCHlch(37.75, 74.99, 306.59°)
OKLaboklab(48.27% 0.0656 -0.1724)
OKLCHoklch(48.27% 0.184 290.8)
XYZxyz(16.0535, 9.9497, 48.6418)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340BC #99BC40
analogous
#405BBC #6340BC #A140BC
triadic
#6340BC #BC6340 #40BC63
tetradic
#6340BC #BC405B #99BC40 #40BCA1
square
#6340BC #BC405B #99BC40 #40BCA1
split-complementary
#6340BC #BCA140 #5BBC40
monochromatic
#332161 #4B308E #6340BC #886CCD #AD9ADD

Accessibility & contrast

On white

7.02
#6340BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#6340BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6340BC
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340BC#FFFFFF#000000##FFFFFF
##6340BC1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6340bc;
/* rgb */ color: rgb(99, 64, 188);
/* oklch */ color: oklch(48.3% 0.184 290.8);
Tailwind
colors: {
  custom: {
    50: '#9777d1',
    500: '#6340bc',
    950: '#000000',
  },
}
SCSS
$custom: #6340bc;
$custom-light: #9777d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6340bc",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 256.935,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.4827,
    "c": 0.18447,
    "h": 290.8
  },
  "luminance": 0.0995
}

Semantic roles & 50–950 ramp

primary
#6340BC
secondary
#B8C98F
accent
#D94FB2
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6340BC

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

Preview Lab → · Contrast checker → · Palette generator →

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