#6342AA#6342AA

#6342AA is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.2% C 0.159 H 294.1°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#6342AA
RGBrgb(99, 66, 170)
HSLhsl(259, 44%, 46%)
HSVhsv(259, 61%, 67%)
CMYKcmyk(41.8%, 61.2%, 0%, 33.3%)
CIE-LABlab(36.84, 38.47, -51.05)
CIE-LCHlch(36.84, 63.92, 307.01°)
OKLaboklab(47.19% 0.0649 -0.1454)
OKLCHoklch(47.19% 0.159 294.1)
XYZxyz(14.3476, 9.4510, 39.0907)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342AA #89AA42
analogous
#4255AA #6342AA #9742AA
triadic
#6342AA #AA6342 #42AA63
tetradic
#6342AA #AA4255 #89AA42 #42AA97
square
#6342AA #AA4255 #89AA42 #42AA97
split-complementary
#6342AA #AA9742 #55AA42
monochromatic
#302052 #49317E #6342AA #8366C3 #A792D5

Accessibility & contrast

On white

7.27
#6342AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#6342AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6342AA#FFFFFF#000000##FFFFFF
##6342AA1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AD
Deuteranopia (green-blind)
#0455A8
Tritanopia (blue-blind)
#50596F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6342aa;
/* rgb */ color: rgb(99, 66, 170);
/* oklch */ color: oklch(47.2% 0.159 294.1);
Tailwind
colors: {
  custom: {
    50: '#9478c4',
    500: '#6342aa',
    950: '#000000',
  },
}
SCSS
$custom: #6342aa;
$custom-light: #9478c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6342aa",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 259.038,
    "s": 44.068,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47186,
    "c": 0.15929,
    "h": 294.1
  },
  "luminance": 0.09451
}

Semantic roles & 50–950 ramp

primary
#6342AA
secondary
#AEC088
accent
#D454AB
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6342AA

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

Preview Lab → · Contrast checker → · Palette generator →

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