#6342BC#6342BC

#6342BC is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.6% C 0.182 H 290.4°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#6342BC
RGBrgb(99, 66, 188)
HSLhsl(256, 48%, 50%)
HSVhsv(256, 65%, 74%)
CMYKcmyk(47.3%, 64.9%, 0%, 26.3%)
CIE-LABlab(38.16, 43.58, -59.55)
CIE-LCHlch(38.16, 73.79, 306.20°)
OKLaboklab(48.57% 0.0635 -0.1705)
OKLCHoklch(48.57% 0.182 290.4)
XYZxyz(16.1683, 10.1793, 48.6801)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342BC #9BBC42
analogous
#425EBC #6342BC #A042BC
triadic
#6342BC #BC6342 #42BC63
tetradic
#6342BC #BC425E #9BBC42 #42BCA0
square
#6342BC #BC425E #9BBC42 #42BCA0
split-complementary
#6342BC #BCA042 #5EBC42
monochromatic
#332261 #4B328F #6342BC #886FCC #AD9CDC

Accessibility & contrast

On white

6.92
#6342BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#6342BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342BC
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342BC#FFFFFF#000000##FFFFFF
##6342BC1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#475F79
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6342bc;
/* rgb */ color: rgb(99, 66, 188);
/* oklch */ color: oklch(48.6% 0.182 290.4);
Tailwind
colors: {
  custom: {
    50: '#9778d1',
    500: '#6342bc',
    950: '#000000',
  },
}
SCSS
$custom: #6342bc;
$custom-light: #9778d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6342bc",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 256.23,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48566,
    "c": 0.1819,
    "h": 290.4
  },
  "luminance": 0.1018
}

Semantic roles & 50–950 ramp

primary
#6342BC
secondary
#BAC991
accent
#D850B3
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6342BC

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

Preview Lab → · Contrast checker → · Palette generator →

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