#6340CE#6340CE

#6340CE is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.8% C 0.206 H 287.8°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#6340CE
RGBrgb(99, 64, 206)
HSLhsl(255, 59%, 53%)
HSVhsv(255, 69%, 81%)
CMYKcmyk(51.9%, 68.9%, 0%, 19.2%)
CIE-LABlab(39.20, 49.82, -68.35)
CIE-LCHlch(39.20, 84.58, 306.09°)
OKLaboklab(49.76% 0.0629 -0.1963)
OKLCHoklch(49.76% 0.206 287.8)
XYZxyz(18.1163, 10.7748, 59.5057)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340CE #ABCE40
analogous
#4064CE #6340CE #AA40CE
triadic
#6340CE #CE6340 #40CE63
tetradic
#6340CE #CE4064 #ABCE40 #40CEAA
square
#6340CE #CE4064 #ABCE40 #40CEAA
split-complementary
#6340CE #CEAA40 #64CE40
monochromatic
#341E75 #492BA6 #6340CE #8B71DA #B3A1E7

Accessibility & contrast

On white

6.66
#6340CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#6340CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6340CE
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340CE#FFFFFF#000000##FFFFFF
##6340CE1.006.663.166.66
#FFFFFF6.661.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D2
Deuteranopia (green-blind)
#0058CB
Tritanopia (blue-blind)
#3A6582
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6340ce;
/* rgb */ color: rgb(99, 64, 206);
/* oklch */ color: oklch(49.8% 0.206 287.8);
Tailwind
colors: {
  custom: {
    50: '#9978de',
    500: '#6340ce',
    950: '#000000',
  },
}
SCSS
$custom: #6340ce;
$custom-light: #9978de;
$custom-dark: #000000;
JSON
{
  "hex": "#6340ce",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 254.789,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49758,
    "c": 0.20613,
    "h": 287.8
  },
  "luminance": 0.10776
}

Semantic roles & 50–950 ramp

primary
#6340CE
secondary
#C4D496
accent
#E245BC
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6340CE

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

Preview Lab → · Contrast checker → · Palette generator →

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