#6340A3#6340A3

#6340A3 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.4% C 0.153 H 296.2°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#6340A3
RGBrgb(99, 64, 163)
HSLhsl(261, 44%, 45%)
HSVhsv(261, 61%, 64%)
CMYKcmyk(39.3%, 60.7%, 0%, 36.1%)
CIE-LABlab(35.91, 37.68, -48.35)
CIE-LCHlch(35.91, 61.30, 307.93°)
OKLaboklab(46.36% 0.0676 -0.1375)
OKLCHoklch(46.36% 0.153 296.2)
XYZxyz(13.5881, 8.9635, 35.6575)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340A3 #80A340
analogous
#404FA3 #6340A3 #9540A3
triadic
#6340A3 #A36340 #40A363
tetradic
#6340A3 #A3404F #80A340 #40A395
square
#6340A3 #A3404F #80A340 #40A395
split-complementary
#6340A3 #A39540 #4FA340
monochromatic
#2E1D4B #482F77 #6340A3 #8260C0 #A48CD2

Accessibility & contrast

On white

7.52
#6340A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#6340A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6340A3
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340A3#FFFFFF#000000##FFFFFF
##6340A31.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A6
Deuteranopia (green-blind)
#1353A1
Tritanopia (blue-blind)
#53566B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6340a3;
/* rgb */ color: rgb(99, 64, 163);
/* oklch */ color: oklch(46.4% 0.153 296.2);
Tailwind
colors: {
  custom: {
    50: '#9476bf',
    500: '#6340a3',
    950: '#000000',
  },
}
SCSS
$custom: #6340a3;
$custom-light: #9476bf;
$custom-dark: #000000;
JSON
{
  "hex": "#6340a3",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 261.212,
    "s": 43.612,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46356,
    "c": 0.15326,
    "h": 296.2
  },
  "luminance": 0.08964
}

Semantic roles & 50–950 ramp

primary
#6340A3
secondary
#A8BD82
accent
#D354A6
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0912
muted
#7E7B81

Preview Lab

Preview with #6340A3

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

Preview Lab → · Contrast checker → · Palette generator →

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