#6342A4#6342A4

#6342A4 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 46.7% C 0.152 H 295.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#6342A4
RGBrgb(99, 66, 164)
HSLhsl(260, 43%, 45%)
HSVhsv(260, 60%, 64%)
CMYKcmyk(39.6%, 59.8%, 0%, 35.7%)
CIE-LABlab(36.42, 36.79, -48.13)
CIE-LCHlch(36.42, 60.58, 307.40°)
OKLaboklab(46.75% 0.0652 -0.1369)
OKLCHoklch(46.75% 0.152 295.5)
XYZxyz(13.7929, 9.2291, 36.1695)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342A4 #83A442
analogous
#4252A4 #6342A4 #9442A4
triadic
#6342A4 #A46342 #42A463
tetradic
#6342A4 #A44252 #83A442 #42A494
square
#6342A4 #A44252 #83A442 #42A494
split-complementary
#6342A4 #A49442 #52A442
monochromatic
#2E1F4D #493078 #6342A4 #8263C0 #A58FD2

Accessibility & contrast

On white

7.38
#6342A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#6342A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6342A4#FFFFFF#000000##FFFFFF
##6342A41.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0156A7
Deuteranopia (green-blind)
#1654A2
Tritanopia (blue-blind)
#53576C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6342a4;
/* rgb */ color: rgb(99, 66, 164);
/* oklch */ color: oklch(46.7% 0.152 295.5);
Tailwind
colors: {
  custom: {
    50: '#9478c0',
    500: '#6342a4',
    950: '#000000',
  },
}
SCSS
$custom: #6342a4;
$custom-light: #9478c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6342a4",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 260.204,
    "s": 42.609,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46749,
    "c": 0.15161,
    "h": 295.5
  },
  "luminance": 0.09229
}

Semantic roles & 50–950 ramp

primary
#6342A4
secondary
#AABD85
accent
#D255A8
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0912
muted
#7E7B81

Preview Lab

Preview with #6342A4

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

Preview Lab → · Contrast checker → · Palette generator →

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