#6342CC#6342CC

#6342CC is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 49.9% C 0.201 H 287.7°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#6342CC
RGBrgb(99, 66, 204)
HSLhsl(254, 58%, 53%)
HSVhsv(254, 68%, 80%)
CMYKcmyk(51.5%, 67.6%, 0%, 20%)
CIE-LABlab(39.42, 48.18, -66.82)
CIE-LCHlch(39.42, 82.38, 305.79°)
OKLaboklab(49.87% 0.0614 -0.1918)
OKLCHoklch(49.87% 0.201 287.7)
XYZxyz(17.9897, 10.9079, 58.2726)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342CC #ABCC42
analogous
#4266CC #6342CC #A842CC
triadic
#6342CC #CC6342 #42CC63
tetradic
#6342CC #CC4266 #ABCC42 #42CCA8
square
#6342CC #CC4266 #ABCC42 #42CCA8
split-complementary
#6342CC #CCA842 #66CC42
monochromatic
#341F74 #492CA4 #6342CC #8B72D9 #B3A2E6

Accessibility & contrast

On white

6.60
#6342CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#6342CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342CC
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342CC#FFFFFF#000000##FFFFFF
##6342CC1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#0059C9
Tritanopia (blue-blind)
#3C6582
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6342cc;
/* rgb */ color: rgb(99, 66, 204);
/* oklch */ color: oklch(49.9% 0.201 287.7);
Tailwind
colors: {
  custom: {
    50: '#9979dd',
    500: '#6342cc',
    950: '#000000',
  },
}
SCSS
$custom: #6342cc;
$custom-light: #9979dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6342cc",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 254.348,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49869,
    "c": 0.20141,
    "h": 287.7
  },
  "luminance": 0.10909
}

Semantic roles & 50–950 ramp

primary
#6342CC
secondary
#C4D397
accent
#E147BC
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6342CC

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

Preview Lab → · Contrast checker → · Palette generator →

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