#6342CE#6342CE

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

Color values

HEX#6342CE
RGBrgb(99, 66, 206)
HSLhsl(254, 59%, 53%)
HSVhsv(254, 68%, 81%)
CMYKcmyk(51.9%, 68%, 0%, 19.2%)
CIE-LABlab(39.59, 48.75, -67.71)
CIE-LCHlch(39.59, 83.44, 305.75°)
OKLaboklab(50.04% 0.0611 -0.1944)
OKLCHoklch(50.04% 0.204 287.4)
XYZxyz(18.2311, 11.0044, 59.5440)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342CE #ADCE42
analogous
#4267CE #6342CE #A942CE
triadic
#6342CE #CE6342 #42CE63
tetradic
#6342CE #CE4267 #ADCE42 #42CEA9
square
#6342CE #CE4267 #ADCE42 #42CEA9
split-complementary
#6342CE #CEA942 #67CE42
monochromatic
#341F77 #492BA7 #6342CE #8B73DB #B3A3E7

Accessibility & contrast

On white

6.56
#6342CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#6342CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342CE
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342CE#FFFFFF#000000##FFFFFF
##6342CE1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#0059CB
Tritanopia (blue-blind)
#3A6683
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6342ce;
/* rgb */ color: rgb(99, 66, 206);
/* oklch */ color: oklch(50.0% 0.204 287.4);
Tailwind
colors: {
  custom: {
    50: '#9979de',
    500: '#6342ce',
    950: '#000000',
  },
}
SCSS
$custom: #6342ce;
$custom-light: #9979de;
$custom-dark: #000000;
JSON
{
  "hex": "#6342ce",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 254.143,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50036,
    "c": 0.20381,
    "h": 287.4
  },
  "luminance": 0.11005
}

Semantic roles & 50–950 ramp

primary
#6342CE
secondary
#C6D498
accent
#E246BD
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6342CE

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

Preview Lab → · Contrast checker → · Palette generator →

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