#6342D5#6342D5

#6342D5 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.6% C 0.212 H 286.4°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#6342D5
RGBrgb(99, 66, 213)
HSLhsl(253, 64%, 55%)
HSVhsv(253, 69%, 84%)
CMYKcmyk(53.5%, 69%, 0%, 16.5%)
CIE-LABlab(40.17, 50.77, -70.80)
CIE-LCHlch(40.17, 87.12, 305.64°)
OKLaboklab(50.63% 0.0599 -0.2035)
OKLCHoklch(50.63% 0.212 286.4)
XYZxyz(19.1005, 11.3522, 64.1226)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342D5 #B4D542
analogous
#426BD5 #6342D5 #AC42D5
triadic
#6342D5 #D56342 #42D563
tetradic
#6342D5 #D5426B #B4D542 #42D5AC
square
#6342D5 #D5426B #B4D542 #42D5AC
split-complementary
#6342D5 #D5AC42 #6BD542
monochromatic
#331C80 #4728B2 #6342D5 #8C74E0 #B6A6EB

Accessibility & contrast

On white

6.42
#6342D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#6342D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342D5
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342D5#FFFFFF#000000##FFFFFF
##6342D51.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D9
Deuteranopia (green-blind)
#005AD2
Tritanopia (blue-blind)
#336887
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6342d5;
/* rgb */ color: rgb(99, 66, 213);
/* oklch */ color: oklch(50.6% 0.212 286.4);
Tailwind
colors: {
  custom: {
    50: '#9a79e3',
    500: '#6342d5',
    950: '#000000',
  },
}
SCSS
$custom: #6342d5;
$custom-light: #9a79e3;
$custom-dark: #000000;
JSON
{
  "hex": "#6342d5",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 253.469,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5063,
    "c": 0.21215,
    "h": 286.4
  },
  "luminance": 0.11353
}

Semantic roles & 50–950 ramp

primary
#6342D5
secondary
#CAD89A
accent
#E741C2
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6342D5

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

Preview Lab → · Contrast checker → · Palette generator →

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