#6342D2#6342D2

#6342D2 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.4% C 0.209 H 286.8°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#6342D2
RGBrgb(99, 66, 210)
HSLhsl(254, 62%, 54%)
HSVhsv(254, 69%, 82%)
CMYKcmyk(52.9%, 68.6%, 0%, 17.6%)
CIE-LABlab(39.92, 49.90, -69.48)
CIE-LCHlch(39.92, 85.55, 305.69°)
OKLaboklab(50.37% 0.0604 -0.1996)
OKLCHoklch(50.37% 0.209 286.8)
XYZxyz(18.7232, 11.2013, 62.1358)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342D2 #B1D242
analogous
#4269D2 #6342D2 #AB42D2
triadic
#6342D2 #D26342 #42D263
tetradic
#6342D2 #D24269 #B1D242 #42D2AB
square
#6342D2 #D24269 #B1D242 #42D2AB
split-complementary
#6342D2 #D2AB42 #69D242
monochromatic
#331E7C #4829AD #6342D2 #8C73DE #B5A5EA

Accessibility & contrast

On white

6.48
#6342D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#6342D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342D2
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342D2#FFFFFF#000000##FFFFFF
##6342D21.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D6
Deuteranopia (green-blind)
#005ACF
Tritanopia (blue-blind)
#366785
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6342d2;
/* rgb */ color: rgb(99, 66, 210);
/* oklch */ color: oklch(50.4% 0.209 286.8);
Tailwind
colors: {
  custom: {
    50: '#9a79e1',
    500: '#6342d2',
    950: '#000000',
  },
}
SCSS
$custom: #6342d2;
$custom-light: #9a79e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6342d2",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 253.75,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50374,
    "c": 0.20859,
    "h": 286.8
  },
  "luminance": 0.11202
}

Semantic roles & 50–950 ramp

primary
#6342D2
secondary
#C8D799
accent
#E543C0
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6342D2

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

Preview Lab → · Contrast checker → · Palette generator →

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