#6340AC#6340AC

#6340AC is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.0% C 0.165 H 294.1°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#6340AC
RGBrgb(99, 64, 172)
HSLhsl(259, 46%, 46%)
HSVhsv(259, 63%, 67%)
CMYKcmyk(42.4%, 62.8%, 0%, 32.5%)
CIE-LABlab(36.55, 40.18, -52.70)
CIE-LCHlch(36.55, 66.27, 307.32°)
OKLaboklab(47.02% 0.0672 -0.1503)
OKLCHoklch(47.02% 0.165 294.1)
XYZxyz(14.4234, 9.2976, 40.0564)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340AC #89AC40
analogous
#4053AC #6340AC #9940AC
triadic
#6340AC #AC6340 #40AC63
tetradic
#6340AC #AC4053 #89AC40 #40AC99
square
#6340AC #AC4053 #89AC40 #40AC99
split-complementary
#6340AC #AC9940 #53AC40
monochromatic
#301F53 #492F7F #6340AC #8364C5 #A791D6

Accessibility & contrast

On white

7.34
#6340AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#6340AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6340AC
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340AC#FFFFFF#000000##FFFFFF
##6340AC1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6340ac;
/* rgb */ color: rgb(99, 64, 172);
/* oklch */ color: oklch(47.0% 0.165 294.1);
Tailwind
colors: {
  custom: {
    50: '#9577c5',
    500: '#6340ac',
    950: '#000000',
  },
}
SCSS
$custom: #6340ac;
$custom-light: #9577c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6340ac",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 259.444,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47022,
    "c": 0.16465,
    "h": 294.1
  },
  "luminance": 0.09298
}

Semantic roles & 50–950 ramp

primary
#6340AC
secondary
#AEC187
accent
#D552AB
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6340AC

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

Preview Lab → · Contrast checker → · Palette generator →

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