#6342C2#6342C2

#6342C2 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.0% C 0.189 H 289.4°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#6342C2
RGBrgb(99, 66, 194)
HSLhsl(255, 51%, 51%)
HSVhsv(255, 66%, 76%)
CMYKcmyk(49%, 66%, 0%, 23.9%)
CIE-LABlab(38.63, 45.30, -62.30)
CIE-LCHlch(38.63, 77.03, 306.02°)
OKLaboklab(49.05% 0.0628 -0.1786)
OKLCHoklch(49.05% 0.189 289.4)
XYZxyz(16.8286, 10.4434, 52.1576)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342C2 #A1C242
analogous
#4261C2 #6342C2 #A342C2
triadic
#6342C2 #C26342 #42C263
tetradic
#6342C2 #C24261 #A1C242 #42C2A3
square
#6342C2 #C24261 #A1C242 #42C2A3
split-complementary
#6342C2 #C2A342 #61C242
monochromatic
#342268 #4B3196 #6342C2 #8970D1 #AF9FE0

Accessibility & contrast

On white

6.80
#6342C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#6342C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342C2
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342C2#FFFFFF#000000##FFFFFF
##6342C21.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#0058BF
Tritanopia (blue-blind)
#43617C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6342c2;
/* rgb */ color: rgb(99, 66, 194);
/* oklch */ color: oklch(49.0% 0.189 289.4);
Tailwind
colors: {
  custom: {
    50: '#9778d5',
    500: '#6342c2',
    950: '#000000',
  },
}
SCSS
$custom: #6342c2;
$custom-light: #9778d5;
$custom-dark: #000000;
JSON
{
  "hex": "#6342c2",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 255.469,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49047,
    "c": 0.18928,
    "h": 289.4
  },
  "luminance": 0.10444
}

Semantic roles & 50–950 ramp

primary
#6342C2
secondary
#BECC94
accent
#DB4DB6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6342C2

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

Preview Lab → · Contrast checker → · Palette generator →

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