#6340A5#6340A5

#6340A5 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.5% C 0.156 H 295.7°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#6340A5
RGBrgb(99, 64, 165)
HSLhsl(261, 44%, 45%)
HSVhsv(261, 61%, 65%)
CMYKcmyk(40%, 61.2%, 0%, 35.3%)
CIE-LABlab(36.05, 38.23, -49.32)
CIE-LCHlch(36.05, 62.41, 307.78°)
OKLaboklab(46.5% 0.0676 -0.1404)
OKLCHoklch(46.5% 0.156 295.7)
XYZxyz(13.7687, 9.0358, 36.6087)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340A5 #82A540
analogous
#4050A5 #6340A5 #9640A5
triadic
#6340A5 #A56340 #40A563
tetradic
#6340A5 #A54050 #82A540 #40A596
square
#6340A5 #A54050 #82A540 #40A596
split-complementary
#6340A5 #A59640 #50A540
monochromatic
#2E1E4D #492F79 #6340A5 #8261C2 #A58DD3

Accessibility & contrast

On white

7.48
#6340A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#6340A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6340A5
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340A5#FFFFFF#000000##FFFFFF
##6340A51.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A8
Deuteranopia (green-blind)
#0D53A3
Tritanopia (blue-blind)
#53566C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6340a5;
/* rgb */ color: rgb(99, 64, 165);
/* oklch */ color: oklch(46.5% 0.156 295.7);
Tailwind
colors: {
  custom: {
    50: '#9476c0',
    500: '#6340a5',
    950: '#000000',
  },
}
SCSS
$custom: #6340a5;
$custom-light: #9476c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6340a5",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 260.792,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46502,
    "c": 0.15581,
    "h": 295.7
  },
  "luminance": 0.09036
}

Semantic roles & 50–950 ramp

primary
#6340A5
secondary
#A9BE83
accent
#D454A8
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0912
muted
#7E7B81

Preview Lab

Preview with #6340A5

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

Preview Lab → · Contrast checker → · Palette generator →

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