#6340C5#6340C5

#6340C5 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.0% C 0.195 H 289.2°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#6340C5
RGBrgb(99, 64, 197)
HSLhsl(256, 53%, 51%)
HSVhsv(256, 68%, 77%)
CMYKcmyk(49.7%, 67.5%, 0%, 22.7%)
CIE-LABlab(38.46, 47.26, -64.32)
CIE-LCHlch(38.46, 79.81, 306.30°)
OKLaboklab(49% 0.0643 -0.1845)
OKLCHoklch(49% 0.195 289.2)
XYZxyz(17.0541, 10.3499, 53.9116)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340C5 #A2C540
analogous
#405FC5 #6340C5 #A540C5
triadic
#6340C5 #C56340 #40C563
tetradic
#6340C5 #C5405F #A2C540 #40C5A5
square
#6340C5 #C5405F #A2C540 #40C5A5
split-complementary
#6340C5 #C5A540 #5FC540
monochromatic
#34206A #4B2F99 #6340C5 #896FD3 #B09EE2

Accessibility & contrast

On white

6.84
#6340C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#6340C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6340C5
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340C5#FFFFFF#000000##FFFFFF
##6340C51.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC9
Deuteranopia (green-blind)
#0057C2
Tritanopia (blue-blind)
#41617D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6340c5;
/* rgb */ color: rgb(99, 64, 197);
/* oklch */ color: oklch(49.0% 0.195 289.2);
Tailwind
colors: {
  custom: {
    50: '#9877d8',
    500: '#6340c5',
    950: '#000000',
  },
}
SCSS
$custom: #6340c5;
$custom-light: #9877d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6340c5",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 255.789,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.49003,
    "c": 0.19537,
    "h": 289.2
  },
  "luminance": 0.10351
}

Semantic roles & 50–950 ramp

primary
#6340C5
secondary
#BECE93
accent
#DD4BB6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6340C5

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

Preview Lab → · Contrast checker → · Palette generator →

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