#6340BD#6340BD

#6340BD is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.4% C 0.186 H 290.6°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#6340BD
RGBrgb(99, 64, 189)
HSLhsl(257, 49%, 50%)
HSVhsv(257, 66%, 74%)
CMYKcmyk(47.6%, 66.1%, 0%, 25.9%)
CIE-LABlab(37.83, 44.98, -60.67)
CIE-LCHlch(37.83, 75.53, 306.55°)
OKLaboklab(48.35% 0.0654 -0.1738)
OKLCHoklch(48.35% 0.186 290.6)
XYZxyz(16.1617, 9.9930, 49.2115)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340BD #9ABD40
analogous
#405CBD #6340BD #A240BD
triadic
#6340BD #BD6340 #40BD63
tetradic
#6340BD #BD405C #9ABD40 #40BDA2
square
#6340BD #BD405C #9ABD40 #40BDA2
split-complementary
#6340BD #BDA240 #5CBD40
monochromatic
#332162 #4B318F #6340BD #886DCD #AD9ADD

Accessibility & contrast

On white

7.00
#6340BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#6340BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6340BD
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340BD#FFFFFF#000000##FFFFFF
##6340BD1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC1
Deuteranopia (green-blind)
#0056BA
Tritanopia (blue-blind)
#465E79
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6340bd;
/* rgb */ color: rgb(99, 64, 189);
/* oklch */ color: oklch(48.4% 0.186 290.6);
Tailwind
colors: {
  custom: {
    50: '#9777d2',
    500: '#6340bd',
    950: '#000000',
  },
}
SCSS
$custom: #6340bd;
$custom-light: #9777d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6340bd",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 256.8,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.4835,
    "c": 0.18568,
    "h": 290.6
  },
  "luminance": 0.09994
}

Semantic roles & 50–950 ramp

primary
#6340BD
secondary
#B9C990
accent
#D94FB2
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6340BD

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

Preview Lab → · Contrast checker → · Palette generator →

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