#6342CB#6342CB

#6342CB is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 49.8% C 0.200 H 287.9°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#6342CB
RGBrgb(99, 66, 203)
HSLhsl(254, 57%, 53%)
HSVhsv(254, 67%, 80%)
CMYKcmyk(51.2%, 67.5%, 0%, 20.4%)
CIE-LABlab(39.34, 47.89, -66.37)
CIE-LCHlch(39.34, 81.85, 305.81°)
OKLaboklab(49.79% 0.0615 -0.1905)
OKLCHoklch(49.79% 0.2 287.9)
XYZxyz(17.8701, 10.8600, 57.6429)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342CB #AACB42
analogous
#4265CB #6342CB #A842CB
triadic
#6342CB #CB6342 #42CB63
tetradic
#6342CB #CB4265 #AACB42 #42CBA8
square
#6342CB #CB4265 #AACB42 #42CBA8
split-complementary
#6342CB #CBA842 #65CB42
monochromatic
#342073 #492DA3 #6342CB #8B72D8 #B2A2E5

Accessibility & contrast

On white

6.62
#6342CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#6342CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342CB
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342CB#FFFFFF#000000##FFFFFF
##6342CB1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#0059C8
Tritanopia (blue-blind)
#3C6581
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6342cb;
/* rgb */ color: rgb(99, 66, 203);
/* oklch */ color: oklch(49.8% 0.200 287.9);
Tailwind
colors: {
  custom: {
    50: '#9979dc',
    500: '#6342cb',
    950: '#000000',
  },
}
SCSS
$custom: #6342cb;
$custom-light: #9979dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6342cb",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 254.453,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49786,
    "c": 0.2002,
    "h": 287.9
  },
  "luminance": 0.10861
}

Semantic roles & 50–950 ramp

primary
#6342CB
secondary
#C4D297
accent
#E048BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6342CB

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

Preview Lab → · Contrast checker → · Palette generator →

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