#6342DB#6342DB

#6342DB is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.1% C 0.219 H 285.6°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#6342DB
RGBrgb(99, 66, 219)
HSLhsl(253, 68%, 56%)
HSVhsv(253, 70%, 86%)
CMYKcmyk(54.8%, 69.9%, 0%, 14.1%)
CIE-LABlab(40.67, 52.49, -73.41)
CIE-LCHlch(40.67, 90.25, 305.57°)
OKLaboklab(51.15% 0.0588 -0.2112)
OKLCHoklch(51.15% 0.219 285.6)
XYZxyz(19.8761, 11.6624, 68.2078)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342DB #BADB42
analogous
#426DDB #6342DB #AF42DB
triadic
#6342DB #DB6342 #42DB63
tetradic
#6342DB #DB426D #BADB42 #42DBAF
square
#6342DB #DB426D #BADB42 #42DBAF
split-complementary
#6342DB #DBAF42 #6DDB42
monochromatic
#321A89 #4524BC #6342DB #8D75E5 #B8A9EF

Accessibility & contrast

On white

6.30
#6342DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#6342DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342DB
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342DB#FFFFFF#000000##FFFFFF
##6342DB1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E0
Deuteranopia (green-blind)
#005BD8
Tritanopia (blue-blind)
#2D6A8A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6342db;
/* rgb */ color: rgb(99, 66, 219);
/* oklch */ color: oklch(51.1% 0.219 285.6);
Tailwind
colors: {
  custom: {
    50: '#9b79e7',
    500: '#6342db',
    950: '#000000',
  },
}
SCSS
$custom: #6342db;
$custom-light: #9b79e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6342db",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 252.941,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51148,
    "c": 0.21921,
    "h": 285.6
  },
  "luminance": 0.11664
}

Semantic roles & 50–950 ramp

primary
#6342DB
secondary
#CEDC9D
accent
#EB3DC5
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6342DB

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

Preview Lab → · Contrast checker → · Palette generator →

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