#6342BB#6342BB

#6342BB is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.5% C 0.181 H 290.6°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#6342BB
RGBrgb(99, 66, 187)
HSLhsl(256, 48%, 50%)
HSVhsv(256, 65%, 73%)
CMYKcmyk(47.1%, 64.7%, 0%, 26.7%)
CIE-LABlab(38.09, 43.30, -59.08)
CIE-LCHlch(38.09, 73.25, 306.23°)
OKLaboklab(48.49% 0.0636 -0.1691)
OKLCHoklch(48.49% 0.181 290.6)
XYZxyz(16.0609, 10.1363, 48.1143)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342BB #9ABB42
analogous
#425DBB #6342BB #A042BB
triadic
#6342BB #BB6342 #42BB63
tetradic
#6342BB #BB425D #9ABB42 #42BBA0
square
#6342BB #BB425D #9ABB42 #42BBA0
split-complementary
#6342BB #BBA042 #5DBB42
monochromatic
#332261 #4B328E #6342BB #886ECC #AD9CDC

Accessibility & contrast

On white

6.94
#6342BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#6342BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342BB
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342BB#FFFFFF#000000##FFFFFF
##6342BB1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#475F78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6342bb;
/* rgb */ color: rgb(99, 66, 187);
/* oklch */ color: oklch(48.5% 0.181 290.6);
Tailwind
colors: {
  custom: {
    50: '#9678d0',
    500: '#6342bb',
    950: '#000000',
  },
}
SCSS
$custom: #6342bb;
$custom-light: #9678d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6342bb",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 256.364,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48487,
    "c": 0.18067,
    "h": 290.6
  },
  "luminance": 0.10137
}

Semantic roles & 50–950 ramp

primary
#6342BB
secondary
#B9C891
accent
#D750B3
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6342BB

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

Preview Lab → · Contrast checker → · Palette generator →

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