#6340AD#6340AD

#6340AD is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.1% C 0.166 H 293.9°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#6340AD
RGBrgb(99, 64, 173)
HSLhsl(259, 46%, 46%)
HSVhsv(259, 63%, 68%)
CMYKcmyk(42.8%, 63%, 0%, 32.2%)
CIE-LABlab(36.62, 40.46, -53.18)
CIE-LCHlch(36.62, 66.82, 307.26°)
OKLaboklab(47.1% 0.0671 -0.1517)
OKLCHoklch(47.1% 0.166 293.9)
XYZxyz(14.5198, 9.3362, 40.5641)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340AD #8AAD40
analogous
#4054AD #6340AD #9A40AD
triadic
#6340AD #AD6340 #40AD63
tetradic
#6340AD #AD4054 #8AAD40 #40AD9A
square
#6340AD #AD4054 #8AAD40 #40AD9A
split-complementary
#6340AD #AD9A40 #54AD40
monochromatic
#301F54 #492F80 #6340AD #8464C6 #A791D6

Accessibility & contrast

On white

7.32
#6340AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#6340AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6340AD
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340AD#FFFFFF#000000##FFFFFF
##6340AD1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B0
Deuteranopia (green-blind)
#0054AB
Tritanopia (blue-blind)
#4F5970
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6340ad;
/* rgb */ color: rgb(99, 64, 173);
/* oklch */ color: oklch(47.1% 0.166 293.9);
Tailwind
colors: {
  custom: {
    50: '#9577c6',
    500: '#6340ad',
    950: '#000000',
  },
}
SCSS
$custom: #6340ad;
$custom-light: #9577c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6340ad",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 259.266,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47098,
    "c": 0.1659,
    "h": 293.9
  },
  "luminance": 0.09337
}

Semantic roles & 50–950 ramp

primary
#6340AD
secondary
#AFC287
accent
#D652AB
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6340AD

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

Preview Lab → · Contrast checker → · Palette generator →

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