#6342AE#6342AE

#6342AE is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.5% C 0.164 H 293.2°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#6342AE
RGBrgb(99, 66, 174)
HSLhsl(258, 45%, 47%)
HSVhsv(258, 62%, 68%)
CMYKcmyk(43.1%, 62.1%, 0%, 31.8%)
CIE-LABlab(37.12, 39.60, -52.97)
CIE-LCHlch(37.12, 66.13, 306.78°)
OKLaboklab(47.48% 0.0647 -0.1511)
OKLCHoklch(47.48% 0.164 293.2)
XYZxyz(14.7317, 9.6047, 41.1139)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342AE #8DAE42
analogous
#4257AE #6342AE #9942AE
triadic
#6342AE #AE6342 #42AE63
tetradic
#6342AE #AE4257 #8DAE42 #42AE99
square
#6342AE #AE4257 #8DAE42 #42AE99
split-complementary
#6342AE #AE9942 #57AE42
monochromatic
#312055 #4A3182 #6342AE #8468C6 #A894D6

Accessibility & contrast

On white

7.19
#6342AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#6342AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6342AE
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342AE#FFFFFF#000000##FFFFFF
##6342AE1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#0055AC
Tritanopia (blue-blind)
#4E5A72
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6342ae;
/* rgb */ color: rgb(99, 66, 174);
/* oklch */ color: oklch(47.5% 0.164 293.2);
Tailwind
colors: {
  custom: {
    50: '#9578c7',
    500: '#6342ae',
    950: '#000000',
  },
}
SCSS
$custom: #6342ae;
$custom-light: #9578c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6342ae",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 258.333,
    "s": 45,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47484,
    "c": 0.16438,
    "h": 293.2
  },
  "luminance": 0.09605
}

Semantic roles & 50–950 ramp

primary
#6342AE
secondary
#B1C28A
accent
#D553AD
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6342AE

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

Preview Lab → · Contrast checker → · Palette generator →

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