#6340CC#6340CC

#6340CC is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.6% C 0.204 H 288.1°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#6340CC
RGBrgb(99, 64, 204)
HSLhsl(255, 58%, 53%)
HSVhsv(255, 69%, 80%)
CMYKcmyk(51.5%, 68.6%, 0%, 20%)
CIE-LABlab(39.03, 49.25, -67.46)
CIE-LCHlch(39.03, 83.53, 306.13°)
OKLaboklab(49.59% 0.0632 -0.1937)
OKLCHoklch(49.59% 0.204 288.1)
XYZxyz(17.8749, 10.6782, 58.2343)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340CC #A9CC40
analogous
#4063CC #6340CC #A940CC
triadic
#6340CC #CC6340 #40CC63
tetradic
#6340CC #CC4063 #A9CC40 #40CCA9
square
#6340CC #CC4063 #A9CC40 #40CCA9
split-complementary
#6340CC #CCA940 #63CC40
monochromatic
#341F73 #492CA3 #6340CC #8A70D9 #B2A1E6

Accessibility & contrast

On white

6.70
#6340CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#6340CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6340CC
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340CC#FFFFFF#000000##FFFFFF
##6340CC1.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD0
Deuteranopia (green-blind)
#0058C9
Tritanopia (blue-blind)
#3C6481
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6340cc;
/* rgb */ color: rgb(99, 64, 204);
/* oklch */ color: oklch(49.6% 0.204 288.1);
Tailwind
colors: {
  custom: {
    50: '#9977dd',
    500: '#6340cc',
    950: '#000000',
  },
}
SCSS
$custom: #6340cc;
$custom-light: #9977dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6340cc",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 255,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49588,
    "c": 0.20375,
    "h": 288.1
  },
  "luminance": 0.10679
}

Semantic roles & 50–950 ramp

primary
#6340CC
secondary
#C3D295
accent
#E147BA
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6340CC

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

Preview Lab → · Contrast checker → · Palette generator →

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