#6340D3#6340D3

#6340D3 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.2% C 0.212 H 287.0°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#6340D3
RGBrgb(99, 64, 211)
HSLhsl(254, 63%, 54%)
HSVhsv(254, 70%, 83%)
CMYKcmyk(53.1%, 69.7%, 0%, 17.3%)
CIE-LABlab(39.62, 51.25, -70.55)
CIE-LCHlch(39.62, 87.20, 306.00°)
OKLaboklab(50.19% 0.062 -0.2028)
OKLCHoklch(50.19% 0.212 287)
XYZxyz(18.7334, 11.0216, 62.7557)
Luminance0.1102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340D3 #B0D340
analogous
#4067D3 #6340D3 #AD40D3
triadic
#6340D3 #D36340 #40D363
tetradic
#6340D3 #D34067 #B0D340 #40D3AD
square
#6340D3 #D34067 #B0D340 #40D3AD
split-complementary
#6340D3 #D3AD40 #67D340
monochromatic
#331D7C #4828AE #6340D3 #8C72DE #B4A3EA

Accessibility & contrast

On white

6.55
#6340D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#6340D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6340D3
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340D3#FFFFFF#000000##FFFFFF
##6340D31.006.553.206.55
#FFFFFF6.551.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D7
Deuteranopia (green-blind)
#0059D0
Tritanopia (blue-blind)
#366685
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6340d3;
/* rgb */ color: rgb(99, 64, 211);
/* oklch */ color: oklch(50.2% 0.212 287.0);
Tailwind
colors: {
  custom: {
    50: '#9a78e2',
    500: '#6340d3',
    950: '#000000',
  },
}
SCSS
$custom: #6340d3;
$custom-light: #9a78e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6340d3",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 254.286,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50186,
    "c": 0.21203,
    "h": 287
  },
  "luminance": 0.11023
}

Semantic roles & 50–950 ramp

primary
#6340D3
secondary
#C8D798
accent
#E642BF
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0915
muted
#7F7B84

Preview Lab

Preview with #6340D3

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

Preview Lab → · Contrast checker → · Palette generator →

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