#6342CF#6342CF

#6342CF is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.1% C 0.205 H 287.3°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#6342CF
RGBrgb(99, 66, 207)
HSLhsl(254, 59%, 54%)
HSVhsv(254, 68%, 81%)
CMYKcmyk(52.2%, 68.1%, 0%, 18.8%)
CIE-LABlab(39.67, 49.04, -68.15)
CIE-LCHlch(39.67, 83.96, 305.74°)
OKLaboklab(50.12% 0.0609 -0.1957)
OKLCHoklch(50.12% 0.205 287.3)
XYZxyz(18.3530, 11.0532, 60.1858)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342CF #AECF42
analogous
#4267CF #6342CF #AA42CF
triadic
#6342CF #CF6342 #42CF63
tetradic
#6342CF #CF4267 #AECF42 #42CFAA
square
#6342CF #CF4267 #AECF42 #42CFAA
split-complementary
#6342CF #CFAA42 #67CF42
monochromatic
#331F78 #482BA9 #6342CF #8B73DB #B4A4E8

Accessibility & contrast

On white

6.54
#6342CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#6342CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342CF
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342CF#FFFFFF#000000##FFFFFF
##6342CF1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#005ACC
Tritanopia (blue-blind)
#396683
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6342cf;
/* rgb */ color: rgb(99, 66, 207);
/* oklch */ color: oklch(50.1% 0.205 287.3);
Tailwind
colors: {
  custom: {
    50: '#9979df',
    500: '#6342cf',
    950: '#000000',
  },
}
SCSS
$custom: #6342cf;
$custom-light: #9979df;
$custom-dark: #000000;
JSON
{
  "hex": "#6342cf",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 254.043,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50121,
    "c": 0.20501,
    "h": 287.3
  },
  "luminance": 0.11054
}

Semantic roles & 50–950 ramp

primary
#6342CF
secondary
#C6D598
accent
#E345BE
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6342CF

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

Preview Lab → · Contrast checker → · Palette generator →

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