#6342BF#6342BF

#6342BF is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.8% C 0.186 H 289.9°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#6342BF
RGBrgb(99, 66, 191)
HSLhsl(256, 49%, 50%)
HSVhsv(256, 65%, 75%)
CMYKcmyk(48.2%, 65.4%, 0%, 25.1%)
CIE-LABlab(38.39, 44.44, -60.93)
CIE-LCHlch(38.39, 75.42, 306.11°)
OKLaboklab(48.81% 0.0632 -0.1745)
OKLCHoklch(48.81% 0.186 289.9)
XYZxyz(16.4951, 10.3100, 50.4010)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342BF #9EBF42
analogous
#425FBF #6342BF #A142BF
triadic
#6342BF #BF6342 #42BF63
tetradic
#6342BF #BF425F #9EBF42 #42BFA1
square
#6342BF #BF425F #9EBF42 #42BFA1
split-complementary
#6342BF #BFA142 #5FBF42
monochromatic
#342265 #4B3292 #6342BF #8970CE #AE9DDE

Accessibility & contrast

On white

6.86
#6342BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#6342BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342BF
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342BF#FFFFFF#000000##FFFFFF
##6342BF1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#0057BC
Tritanopia (blue-blind)
#45607B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6342bf;
/* rgb */ color: rgb(99, 66, 191);
/* oklch */ color: oklch(48.8% 0.186 289.9);
Tailwind
colors: {
  custom: {
    50: '#9778d3',
    500: '#6342bf',
    950: '#000000',
  },
}
SCSS
$custom: #6342bf;
$custom-light: #9778d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6342bf",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 255.84,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48805,
    "c": 0.1856,
    "h": 289.9
  },
  "luminance": 0.10311
}

Semantic roles & 50–950 ramp

primary
#6342BF
secondary
#BCCA93
accent
#D94FB4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6342BF

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

Preview Lab → · Contrast checker → · Palette generator →

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