#6340D1#6340D1

#6340D1 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.0% C 0.210 H 287.3°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#6340D1
RGBrgb(99, 64, 209)
HSLhsl(254, 61%, 54%)
HSVhsv(254, 69%, 82%)
CMYKcmyk(52.6%, 69.4%, 0%, 18%)
CIE-LABlab(39.45, 50.68, -69.67)
CIE-LCHlch(39.45, 86.15, 306.03°)
OKLaboklab(50.01% 0.0624 -0.2002)
OKLCHoklch(50.01% 0.21 287.3)
XYZxyz(18.4842, 10.9220, 61.4434)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340D1 #AED140
analogous
#4065D1 #6340D1 #AB40D1
triadic
#6340D1 #D16340 #40D163
tetradic
#6340D1 #D14065 #AED140 #40D1AB
square
#6340D1 #D14065 #AED140 #40D1AB
split-complementary
#6340D1 #D1AB40 #65D140
monochromatic
#331D79 #4829AB #6340D1 #8B71DD #B4A3E9

Accessibility & contrast

On white

6.59
#6340D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#6340D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6340D1
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340D1#FFFFFF#000000##FFFFFF
##6340D11.006.593.186.59
#FFFFFF6.591.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D5
Deuteranopia (green-blind)
#0059CE
Tritanopia (blue-blind)
#376684
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6340d1;
/* rgb */ color: rgb(99, 64, 209);
/* oklch */ color: oklch(50.0% 0.210 287.3);
Tailwind
colors: {
  custom: {
    50: '#9a78e0',
    500: '#6340d1',
    950: '#000000',
  },
}
SCSS
$custom: #6340d1;
$custom-light: #9a78e0;
$custom-dark: #000000;
JSON
{
  "hex": "#6340d1",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 254.483,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50014,
    "c": 0.20967,
    "h": 287.3
  },
  "luminance": 0.10923
}

Semantic roles & 50–950 ramp

primary
#6340D1
secondary
#C6D597
accent
#E444BD
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6340D1

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

Preview Lab → · Contrast checker → · Palette generator →

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