#6342CD#6342CD

#6342CD is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.0% C 0.203 H 287.6°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#6342CD
RGBrgb(99, 66, 205)
HSLhsl(254, 58%, 53%)
HSVhsv(254, 68%, 80%)
CMYKcmyk(51.7%, 67.8%, 0%, 19.6%)
CIE-LABlab(39.51, 48.46, -67.27)
CIE-LCHlch(39.51, 82.91, 305.77°)
OKLaboklab(49.95% 0.0612 -0.1931)
OKLCHoklch(49.95% 0.203 287.6)
XYZxyz(18.1100, 10.9560, 58.9062)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342CD #ACCD42
analogous
#4266CD #6342CD #A942CD
triadic
#6342CD #CD6342 #42CD63
tetradic
#6342CD #CD4266 #ACCD42 #42CDA9
square
#6342CD #CD4266 #ACCD42 #42CDA9
split-complementary
#6342CD #CDA942 #66CD42
monochromatic
#341F76 #492CA6 #6342CD #8B72DA #B3A3E7

Accessibility & contrast

On white

6.58
#6342CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#6342CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342CD
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342CD#FFFFFF#000000##FFFFFF
##6342CD1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#0059CA
Tritanopia (blue-blind)
#3B6582
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6342cd;
/* rgb */ color: rgb(99, 66, 205);
/* oklch */ color: oklch(50.0% 0.203 287.6);
Tailwind
colors: {
  custom: {
    50: '#9979dd',
    500: '#6342cd',
    950: '#000000',
  },
}
SCSS
$custom: #6342cd;
$custom-light: #9979dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6342cd",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 254.245,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49953,
    "c": 0.20261,
    "h": 287.6
  },
  "luminance": 0.10957
}

Semantic roles & 50–950 ramp

primary
#6342CD
secondary
#C5D397
accent
#E146BD
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6342CD

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

Preview Lab → · Contrast checker → · Palette generator →

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