#6340A4#6340A4

#6340A4 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.4% C 0.155 H 295.9°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#6340A4
RGBrgb(99, 64, 164)
HSLhsl(261, 44%, 45%)
HSVhsv(261, 61%, 64%)
CMYKcmyk(39.6%, 61%, 0%, 35.7%)
CIE-LABlab(35.98, 37.95, -48.84)
CIE-LCHlch(35.98, 61.85, 307.85°)
OKLaboklab(46.43% 0.0676 -0.139)
OKLCHoklch(46.43% 0.155 295.9)
XYZxyz(13.6781, 8.9995, 36.1312)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340A4 #81A440
analogous
#404FA4 #6340A4 #9540A4
triadic
#6340A4 #A46340 #40A463
tetradic
#6340A4 #A4404F #81A440 #40A495
square
#6340A4 #A4404F #81A440 #40A495
split-complementary
#6340A4 #A49540 #4FA440
monochromatic
#2E1E4C #482F78 #6340A4 #8260C1 #A58CD2

Accessibility & contrast

On white

7.50
#6340A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#6340A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6340A4
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340A4#FFFFFF#000000##FFFFFF
##6340A41.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A7
Deuteranopia (green-blind)
#1053A2
Tritanopia (blue-blind)
#53566C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6340a4;
/* rgb */ color: rgb(99, 64, 164);
/* oklch */ color: oklch(46.4% 0.155 295.9);
Tailwind
colors: {
  custom: {
    50: '#9476c0',
    500: '#6340a4',
    950: '#000000',
  },
}
SCSS
$custom: #6340a4;
$custom-light: #9476c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6340a4",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 261,
    "s": 43.86,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46428,
    "c": 0.15453,
    "h": 295.9
  },
  "luminance": 0.09
}

Semantic roles & 50–950 ramp

primary
#6340A4
secondary
#A9BD83
accent
#D454A7
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0912
muted
#7E7B81

Preview Lab

Preview with #6340A4

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

Preview Lab → · Contrast checker → · Palette generator →

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