#6342CA#6342CA

#6342CA is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.7% C 0.199 H 288.1°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#6342CA
RGBrgb(99, 66, 202)
HSLhsl(255, 56%, 53%)
HSVhsv(255, 67%, 79%)
CMYKcmyk(51%, 67.3%, 0%, 20.8%)
CIE-LABlab(39.26, 47.60, -65.92)
CIE-LCHlch(39.26, 81.31, 305.83°)
OKLaboklab(49.7% 0.0617 -0.1892)
OKLCHoklch(49.7% 0.199 288.1)
XYZxyz(17.7514, 10.8125, 57.0173)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342CA #A9CA42
analogous
#4265CA #6342CA #A742CA
triadic
#6342CA #CA6342 #42CA63
tetradic
#6342CA #CA4265 #A9CA42 #42CAA7
square
#6342CA #CA4265 #A9CA42 #42CAA7
split-complementary
#6342CA #CAA742 #65CA42
monochromatic
#342072 #492DA2 #6342CA #8A72D7 #B2A2E5

Accessibility & contrast

On white

6.64
#6342CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#6342CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342CA
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342CA#FFFFFF#000000##FFFFFF
##6342CA1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#0059C7
Tritanopia (blue-blind)
#3D6481
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6342ca;
/* rgb */ color: rgb(99, 66, 202);
/* oklch */ color: oklch(49.7% 0.199 288.1);
Tailwind
colors: {
  custom: {
    50: '#9879db',
    500: '#6342ca',
    950: '#000000',
  },
}
SCSS
$custom: #6342ca;
$custom-light: #9879db;
$custom-dark: #000000;
JSON
{
  "hex": "#6342ca",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 254.559,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49702,
    "c": 0.199,
    "h": 288.1
  },
  "luminance": 0.10813
}

Semantic roles & 50–950 ramp

primary
#6342CA
secondary
#C3D196
accent
#DF48BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6342CA

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

Preview Lab → · Contrast checker → · Palette generator →

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