#6342A6#6342A6

#6342A6 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 46.9% C 0.154 H 295.0°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#6342A6
RGBrgb(99, 66, 166)
HSLhsl(260, 43%, 45%)
HSVhsv(260, 60%, 65%)
CMYKcmyk(40.4%, 60.2%, 0%, 34.9%)
CIE-LABlab(36.56, 37.35, -49.11)
CIE-LCHlch(36.56, 61.70, 307.26°)
OKLaboklab(46.89% 0.0651 -0.1398)
OKLCHoklch(46.89% 0.154 295)
XYZxyz(13.9749, 9.3019, 37.1282)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342A6 #85A642
analogous
#4253A6 #6342A6 #9542A6
triadic
#6342A6 #A66342 #42A663
tetradic
#6342A6 #A64253 #85A642 #42A695
square
#6342A6 #A64253 #85A642 #42A695
split-complementary
#6342A6 #A69542 #53A642
monochromatic
#2F1F4E #49317A #6342A6 #8364C1 #A690D3

Accessibility & contrast

On white

7.34
#6342A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#6342A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6342A6
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342A6#FFFFFF#000000##FFFFFF
##6342A61.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A9
Deuteranopia (green-blind)
#1154A4
Tritanopia (blue-blind)
#52586D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6342a6;
/* rgb */ color: rgb(99, 66, 166);
/* oklch */ color: oklch(46.9% 0.154 295.0);
Tailwind
colors: {
  custom: {
    50: '#9478c1',
    500: '#6342a6',
    950: '#000000',
  },
}
SCSS
$custom: #6342a6;
$custom-light: #9478c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6342a6",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 166
  },
  "hsl": {
    "h": 259.8,
    "s": 43.103,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46893,
    "c": 0.15418,
    "h": 295
  },
  "luminance": 0.09302
}

Semantic roles & 50–950 ramp

primary
#6342A6
secondary
#ABBE86
accent
#D355A9
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0912
muted
#7E7B81

Preview Lab

Preview with #6342A6

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

Preview Lab → · Contrast checker → · Palette generator →

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