#6342BA#6342BA

#6342BA is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.4% C 0.179 H 290.8°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#6342BA
RGBrgb(99, 66, 186)
HSLhsl(257, 48%, 49%)
HSVhsv(257, 65%, 73%)
CMYKcmyk(46.8%, 64.5%, 0%, 27.1%)
CIE-LABlab(38.01, 43.01, -58.62)
CIE-LCHlch(38.01, 72.71, 306.27°)
OKLaboklab(48.41% 0.0637 -0.1677)
OKLCHoklch(48.41% 0.179 290.8)
XYZxyz(15.9542, 10.0937, 47.5525)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342BA #99BA42
analogous
#425DBA #6342BA #9F42BA
triadic
#6342BA #BA6342 #42BA63
tetradic
#6342BA #BA425D #99BA42 #42BA9F
square
#6342BA #BA425D #99BA42 #42BA9F
split-complementary
#6342BA #BA9F42 #5DBA42
monochromatic
#332260 #4B328D #6342BA #886ECB #AD9BDB

Accessibility & contrast

On white

6.96
#6342BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#6342BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342BA
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342BA#FFFFFF#000000##FFFFFF
##6342BA1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#0057B8
Tritanopia (blue-blind)
#485F78
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6342ba;
/* rgb */ color: rgb(99, 66, 186);
/* oklch */ color: oklch(48.4% 0.179 290.8);
Tailwind
colors: {
  custom: {
    50: '#9678d0',
    500: '#6342ba',
    950: '#000000',
  },
}
SCSS
$custom: #6342ba;
$custom-light: #9678d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6342ba",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 256.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48408,
    "c": 0.17943,
    "h": 290.8
  },
  "luminance": 0.10094
}

Semantic roles & 50–950 ramp

primary
#6342BA
secondary
#B8C890
accent
#D751B2
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6342BA

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

Preview Lab → · Contrast checker → · Palette generator →

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