#6342C9#6342C9

#6342C9 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.6% C 0.198 H 288.2°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#6342C9
RGBrgb(99, 66, 201)
HSLhsl(255, 56%, 52%)
HSVhsv(255, 67%, 79%)
CMYKcmyk(50.7%, 67.2%, 0%, 21.2%)
CIE-LABlab(39.18, 47.31, -65.48)
CIE-LCHlch(39.18, 80.78, 305.85°)
OKLaboklab(49.62% 0.0618 -0.1879)
OKLCHoklch(49.62% 0.198 288.2)
XYZxyz(17.6333, 10.7653, 56.3958)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342C9 #A8C942
analogous
#4264C9 #6342C9 #A742C9
triadic
#6342C9 #C96342 #42C963
tetradic
#6342C9 #C94264 #A8C942 #42C9A7
square
#6342C9 #C94264 #A8C942 #42C9A7
split-complementary
#6342C9 #C9A742 #64C942
monochromatic
#342070 #4A2EA0 #6342C9 #8A72D7 #B2A1E4

Accessibility & contrast

On white

6.66
#6342C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#6342C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342C9
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342C9#FFFFFF#000000##FFFFFF
##6342C91.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCD
Deuteranopia (green-blind)
#0059C6
Tritanopia (blue-blind)
#3E6480
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6342c9;
/* rgb */ color: rgb(99, 66, 201);
/* oklch */ color: oklch(49.6% 0.198 288.2);
Tailwind
colors: {
  custom: {
    50: '#9879da',
    500: '#6342c9',
    950: '#000000',
  },
}
SCSS
$custom: #6342c9;
$custom-light: #9879da;
$custom-dark: #000000;
JSON
{
  "hex": "#6342c9",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 201
  },
  "hsl": {
    "h": 254.667,
    "s": 55.556,
    "l": 52.353
  },
  "oklch": {
    "l": 0.4962,
    "c": 0.1978,
    "h": 288.2
  },
  "luminance": 0.10766
}

Semantic roles & 50–950 ramp

primary
#6342C9
secondary
#C2D196
accent
#DF49BA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6342C9

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

Preview Lab → · Contrast checker → · Palette generator →

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