#6342A2#6342A2

#6342A2 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 46.6% C 0.149 H 295.9°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#6342A2
RGBrgb(99, 66, 162)
HSLhsl(261, 42%, 45%)
HSVhsv(261, 59%, 64%)
CMYKcmyk(38.9%, 59.3%, 0%, 36.5%)
CIE-LABlab(36.29, 36.24, -47.15)
CIE-LCHlch(36.29, 59.47, 307.54°)
OKLaboklab(46.61% 0.0652 -0.134)
OKLCHoklch(46.61% 0.149 295.9)
XYZxyz(13.6137, 9.1575, 35.2257)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342A2 #81A242
analogous
#4251A2 #6342A2 #9342A2
triadic
#6342A2 #A26342 #42A263
tetradic
#6342A2 #A24251 #81A242 #42A293
square
#6342A2 #A24251 #81A242 #42A293
split-complementary
#6342A2 #A29342 #51A242
monochromatic
#2E1F4B #483077 #6342A2 #8262BF #A58ED1

Accessibility & contrast

On white

7.42
#6342A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#6342A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6342A2#FFFFFF#000000##FFFFFF
##6342A21.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0856A5
Deuteranopia (green-blind)
#1A54A0
Tritanopia (blue-blind)
#54576B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6342a2;
/* rgb */ color: rgb(99, 66, 162);
/* oklch */ color: oklch(46.6% 0.149 295.9);
Tailwind
colors: {
  custom: {
    50: '#9478be',
    500: '#6342a2',
    950: '#000000',
  },
}
SCSS
$custom: #6342a2;
$custom-light: #9478be;
$custom-dark: #000000;
JSON
{
  "hex": "#6342a2",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 260.625,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46606,
    "c": 0.14902,
    "h": 295.9
  },
  "luminance": 0.09158
}

Semantic roles & 50–950 ramp

primary
#6342A2
secondary
#A9BC84
accent
#D256A7
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0D0912
muted
#7E7B81

Preview Lab

Preview with #6342A2

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

Preview Lab → · Contrast checker → · Palette generator →

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