#6342D6#6342D6

#6342D6 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.7% C 0.213 H 286.3°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#6342D6
RGBrgb(99, 66, 214)
HSLhsl(253, 64%, 55%)
HSVhsv(253, 69%, 84%)
CMYKcmyk(53.7%, 69.2%, 0%, 16.1%)
CIE-LABlab(40.25, 51.05, -71.24)
CIE-LCHlch(40.25, 87.64, 305.63°)
OKLaboklab(50.72% 0.0597 -0.2048)
OKLCHoklch(50.72% 0.213 286.3)
XYZxyz(19.2278, 11.4031, 64.7931)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342D6 #B5D642
analogous
#426BD6 #6342D6 #AD42D6
triadic
#6342D6 #D66342 #42D663
tetradic
#6342D6 #D6426B #B5D642 #42D6AD
square
#6342D6 #D6426B #B5D642 #42D6AD
split-complementary
#6342D6 #D6AD42 #6BD642
monochromatic
#331C82 #4627B4 #6342D6 #8D74E1 #B6A7EC

Accessibility & contrast

On white

6.40
#6342D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#6342D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342D6
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342D6#FFFFFF#000000##FFFFFF
##6342D61.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DA
Deuteranopia (green-blind)
#005BD3
Tritanopia (blue-blind)
#326987
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6342d6;
/* rgb */ color: rgb(99, 66, 214);
/* oklch */ color: oklch(50.7% 0.213 286.3);
Tailwind
colors: {
  custom: {
    50: '#9a79e4',
    500: '#6342d6',
    950: '#000000',
  },
}
SCSS
$custom: #6342d6;
$custom-light: #9a79e4;
$custom-dark: #000000;
JSON
{
  "hex": "#6342d6",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 253.378,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50716,
    "c": 0.21333,
    "h": 286.3
  },
  "luminance": 0.11404
}

Semantic roles & 50–950 ramp

primary
#6342D6
secondary
#CBD99B
accent
#E740C2
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6342D6

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

Preview Lab → · Contrast checker → · Palette generator →

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