#6342C7#6342C7

#6342C7 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.5% C 0.195 H 288.5°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#6342C7
RGBrgb(99, 66, 199)
HSLhsl(255, 54%, 52%)
HSVhsv(255, 67%, 78%)
CMYKcmyk(50.3%, 66.8%, 0%, 22%)
CIE-LABlab(39.02, 46.74, -64.57)
CIE-LCHlch(39.02, 79.71, 305.90°)
OKLaboklab(49.46% 0.0621 -0.1852)
OKLCHoklch(49.46% 0.195 288.5)
XYZxyz(17.3996, 10.6718, 55.1648)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342C7 #A6C742
analogous
#4264C7 #6342C7 #A642C7
triadic
#6342C7 #C76342 #42C763
tetradic
#6342C7 #C74264 #A6C742 #42C7A6
square
#6342C7 #C74264 #A6C742 #42C7A6
split-complementary
#6342C7 #C7A642 #64C742
monochromatic
#34216E #4A2F9D #6342C7 #8A71D5 #B1A0E3

Accessibility & contrast

On white

6.70
#6342C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#6342C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342C7
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342C7#FFFFFF#000000##FFFFFF
##6342C71.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCB
Deuteranopia (green-blind)
#0058C4
Tritanopia (blue-blind)
#3F637F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6342c7;
/* rgb */ color: rgb(99, 66, 199);
/* oklch */ color: oklch(49.5% 0.195 288.5);
Tailwind
colors: {
  custom: {
    50: '#9879d9',
    500: '#6342c7',
    950: '#000000',
  },
}
SCSS
$custom: #6342c7;
$custom-light: #9879d9;
$custom-dark: #000000;
JSON
{
  "hex": "#6342c7",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 254.887,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.49455,
    "c": 0.19537,
    "h": 288.5
  },
  "luminance": 0.10673
}

Semantic roles & 50–950 ramp

primary
#6342C7
secondary
#C1D095
accent
#DE4AB9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6342C7

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

Preview Lab → · Contrast checker → · Palette generator →

#6342C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva