#6340CD#6340CD

#6340CD is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.7% C 0.205 H 287.9°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#6340CD
RGBrgb(99, 64, 205)
HSLhsl(255, 59%, 53%)
HSVhsv(255, 69%, 80%)
CMYKcmyk(51.7%, 68.8%, 0%, 19.6%)
CIE-LABlab(39.12, 49.54, -67.90)
CIE-LCHlch(39.12, 84.05, 306.11°)
OKLaboklab(49.67% 0.063 -0.195)
OKLCHoklch(49.67% 0.205 287.9)
XYZxyz(17.9952, 10.7264, 58.8680)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340CD #AACD40
analogous
#4063CD #6340CD #AA40CD
triadic
#6340CD #CD6340 #40CD63
tetradic
#6340CD #CD4063 #AACD40 #40CDAA
square
#6340CD #CD4063 #AACD40 #40CDAA
split-complementary
#6340CD #CDAA40 #63CD40
monochromatic
#341E74 #492BA5 #6340CD #8B71DA #B2A1E6

Accessibility & contrast

On white

6.68
#6340CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#6340CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6340CD
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340CD#FFFFFF#000000##FFFFFF
##6340CD1.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD1
Deuteranopia (green-blind)
#0058CA
Tritanopia (blue-blind)
#3B6482
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6340cd;
/* rgb */ color: rgb(99, 64, 205);
/* oklch */ color: oklch(49.7% 0.205 287.9);
Tailwind
colors: {
  custom: {
    50: '#9977dd',
    500: '#6340cd',
    950: '#000000',
  },
}
SCSS
$custom: #6340cd;
$custom-light: #9977dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6340cd",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 254.894,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49673,
    "c": 0.20494,
    "h": 287.9
  },
  "luminance": 0.10727
}

Semantic roles & 50–950 ramp

primary
#6340CD
secondary
#C4D396
accent
#E246BB
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6340CD

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

Preview Lab → · Contrast checker → · Palette generator →

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