#6342D9#6342D9

#6342D9 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.0% C 0.217 H 285.8°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#6342D9
RGBrgb(99, 66, 217)
HSLhsl(253, 67%, 55%)
HSVhsv(253, 70%, 85%)
CMYKcmyk(54.4%, 69.6%, 0%, 14.9%)
CIE-LABlab(40.50, 51.92, -72.55)
CIE-LCHlch(40.50, 89.21, 305.59°)
OKLaboklab(50.98% 0.0592 -0.2086)
OKLCHoklch(50.98% 0.217 285.8)
XYZxyz(19.6144, 11.5577, 66.8295)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342D9 #B8D942
analogous
#426CD9 #6342D9 #AF42D9
triadic
#6342D9 #D96342 #42D963
tetradic
#6342D9 #D9426C #B8D942 #42D9AF
square
#6342D9 #D9426C #B8D942 #42D9AF
split-complementary
#6342D9 #D9AF42 #6CD942
monochromatic
#321B86 #4525B9 #6342D9 #8D75E3 #B7A8ED

Accessibility & contrast

On white

6.34
#6342D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#6342D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342D9
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342D9#FFFFFF#000000##FFFFFF
##6342D91.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DE
Deuteranopia (green-blind)
#005BD6
Tritanopia (blue-blind)
#2F6A89
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6342d9;
/* rgb */ color: rgb(99, 66, 217);
/* oklch */ color: oklch(51.0% 0.217 285.8);
Tailwind
colors: {
  custom: {
    50: '#9b79e6',
    500: '#6342d9',
    950: '#000000',
  },
}
SCSS
$custom: #6342d9;
$custom-light: #9b79e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6342d9",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 253.113,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50975,
    "c": 0.21687,
    "h": 285.8
  },
  "luminance": 0.11559
}

Semantic roles & 50–950 ramp

primary
#6342D9
secondary
#CDDB9C
accent
#E93EC4
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6342D9

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

Preview Lab → · Contrast checker → · Palette generator →

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