#6342A5#6342A5

#6342A5 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 46.8% C 0.153 H 295.2°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#6342A5
RGBrgb(99, 66, 165)
HSLhsl(260, 43%, 45%)
HSVhsv(260, 60%, 65%)
CMYKcmyk(40%, 60%, 0%, 35.3%)
CIE-LABlab(36.49, 37.07, -48.62)
CIE-LCHlch(36.49, 61.14, 307.33°)
OKLaboklab(46.82% 0.0651 -0.1383)
OKLCHoklch(46.82% 0.153 295.2)
XYZxyz(13.8836, 9.2654, 36.6469)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342A5 #84A542
analogous
#4252A5 #6342A5 #9442A5
triadic
#6342A5 #A56342 #42A563
tetradic
#6342A5 #A54252 #84A542 #42A594
square
#6342A5 #A54252 #84A542 #42A594
split-complementary
#6342A5 #A59442 #52A542
monochromatic
#2F1F4E #493179 #6342A5 #8363C1 #A68FD2

Accessibility & contrast

On white

7.36
#6342A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##6342A5#FFFFFF#000000##FFFFFF
##6342A51.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A8
Deuteranopia (green-blind)
#1454A3
Tritanopia (blue-blind)
#52586D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6342a5;
/* rgb */ color: rgb(99, 66, 165);
/* oklch */ color: oklch(46.8% 0.153 295.2);
Tailwind
colors: {
  custom: {
    50: '#9478c0',
    500: '#6342a5',
    950: '#000000',
  },
}
SCSS
$custom: #6342a5;
$custom-light: #9478c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6342a5",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 260,
    "s": 42.857,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46821,
    "c": 0.15289,
    "h": 295.2
  },
  "luminance": 0.09266
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6342A5

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

Preview Lab → · Contrast checker → · Palette generator →

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