#6342D1#6342D1

#6342D1 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.3% C 0.207 H 287.0°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#6342D1
RGBrgb(99, 66, 209)
HSLhsl(254, 61%, 54%)
HSVhsv(254, 68%, 82%)
CMYKcmyk(52.6%, 68.4%, 0%, 18%)
CIE-LABlab(39.83, 49.62, -69.04)
CIE-LCHlch(39.83, 85.02, 305.70°)
OKLaboklab(50.29% 0.0606 -0.1983)
OKLCHoklch(50.29% 0.207 287)
XYZxyz(18.5990, 11.1516, 61.4817)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342D1 #B0D142
analogous
#4269D1 #6342D1 #AB42D1
triadic
#6342D1 #D16342 #42D163
tetradic
#6342D1 #D14269 #B0D142 #42D1AB
square
#6342D1 #D14269 #B0D142 #42D1AB
split-complementary
#6342D1 #D1AB42 #69D142
monochromatic
#331E7B #482AAC #6342D1 #8C73DD #B4A4E9

Accessibility & contrast

On white

6.50
#6342D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#6342D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342D1
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342D1#FFFFFF#000000##FFFFFF
##6342D11.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D5
Deuteranopia (green-blind)
#005ACE
Tritanopia (blue-blind)
#376784
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6342d1;
/* rgb */ color: rgb(99, 66, 209);
/* oklch */ color: oklch(50.3% 0.207 287.0);
Tailwind
colors: {
  custom: {
    50: '#9979e0',
    500: '#6342d1',
    950: '#000000',
  },
}
SCSS
$custom: #6342d1;
$custom-light: #9979e0;
$custom-dark: #000000;
JSON
{
  "hex": "#6342d1",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 253.846,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5029,
    "c": 0.2074,
    "h": 287
  },
  "luminance": 0.11153
}

Semantic roles & 50–950 ramp

primary
#6342D1
secondary
#C8D699
accent
#E444BF
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6342D1

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

Preview Lab → · Contrast checker → · Palette generator →

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