#6340AE#6340AE

#6340AE is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.2% C 0.167 H 293.6°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#6340AE
RGBrgb(99, 64, 174)
HSLhsl(259, 46%, 47%)
HSVhsv(259, 63%, 68%)
CMYKcmyk(43.1%, 63.2%, 0%, 31.8%)
CIE-LABlab(36.70, 40.74, -53.66)
CIE-LCHlch(36.70, 67.37, 307.21°)
OKLaboklab(47.17% 0.067 -0.1531)
OKLCHoklch(47.17% 0.167 293.6)
XYZxyz(14.6169, 9.3750, 41.0756)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340AE #8BAE40
analogous
#4054AE #6340AE #9A40AE
triadic
#6340AE #AE6340 #40AE63
tetradic
#6340AE #AE4054 #8BAE40 #40AE9A
square
#6340AE #AE4054 #8BAE40 #40AE9A
split-complementary
#6340AE #AE9A40 #54AE40
monochromatic
#301F55 #4A3081 #6340AE #8465C6 #A892D7

Accessibility & contrast

On white

7.30
#6340AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6340AE
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340AE#FFFFFF#000000##FFFFFF
##6340AE1.007.302.877.30
#FFFFFF7.301.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B1
Deuteranopia (green-blind)
#0054AC
Tritanopia (blue-blind)
#4E5971
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6340ae;
/* rgb */ color: rgb(99, 64, 174);
/* oklch */ color: oklch(47.2% 0.167 293.6);
Tailwind
colors: {
  custom: {
    50: '#9577c7',
    500: '#6340ae',
    950: '#000000',
  },
}
SCSS
$custom: #6340ae;
$custom-light: #9577c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6340ae",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 259.091,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47174,
    "c": 0.16715,
    "h": 293.6
  },
  "luminance": 0.09375
}

Semantic roles & 50–950 ramp

primary
#6340AE
secondary
#B0C288
accent
#D652AC
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6340AE

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

Preview Lab → · Contrast checker → · Palette generator →

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