#6342DF#6342DF

#6342DF is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.5% C 0.224 H 285.0°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#6342DF
RGBrgb(99, 66, 223)
HSLhsl(253, 71%, 57%)
HSVhsv(253, 70%, 87%)
CMYKcmyk(55.6%, 70.4%, 0%, 12.5%)
CIE-LABlab(41.02, 53.64, -75.14)
CIE-LCHlch(41.02, 92.32, 305.52°)
OKLaboklab(51.5% 0.0581 -0.2162)
OKLCHoklch(51.5% 0.224 285)
XYZxyz(20.4090, 11.8756, 71.0145)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342DF #BEDF42
analogous
#4270DF #6342DF #B142DF
triadic
#6342DF #DF6342 #42DF63
tetradic
#6342DF #DF4270 #BEDF42 #42DFB1
square
#6342DF #DF4270 #BEDF42 #42DFB1
split-complementary
#6342DF #DFB142 #70DF42
monochromatic
#31188E #4321C3 #6342DF #8E76E8 #B9ABF1

Accessibility & contrast

On white

6.22
#6342DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#6342DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342DF
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342DF#FFFFFF#000000##FFFFFF
##6342DF1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E4
Deuteranopia (green-blind)
#005CDC
Tritanopia (blue-blind)
#276C8C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6342df;
/* rgb */ color: rgb(99, 66, 223);
/* oklch */ color: oklch(51.5% 0.224 285.0);
Tailwind
colors: {
  custom: {
    50: '#9b79ea',
    500: '#6342df',
    950: '#000000',
  },
}
SCSS
$custom: #6342df;
$custom-light: #9b79ea;
$custom-dark: #000000;
JSON
{
  "hex": "#6342df",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 252.611,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51498,
    "c": 0.22389,
    "h": 285
  },
  "luminance": 0.11877
}

Semantic roles & 50–950 ramp

primary
#6342DF
secondary
#D1DF9E
accent
#EE3AC8
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6342DF

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

Preview Lab → · Contrast checker → · Palette generator →

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