#6340B7#6340B7

#6340B7 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.9% C 0.178 H 291.8°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#6340B7
RGBrgb(99, 64, 183)
HSLhsl(258, 48%, 48%)
HSVhsv(258, 65%, 72%)
CMYKcmyk(45.9%, 65%, 0%, 28.2%)
CIE-LABlab(37.37, 43.28, -57.90)
CIE-LCHlch(37.37, 72.28, 306.78°)
OKLaboklab(47.87% 0.0662 -0.1656)
OKLCHoklch(47.87% 0.178 291.8)
XYZxyz(15.5239, 9.7378, 45.8522)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340B7 #94B740
analogous
#4058B7 #6340B7 #9E40B7
triadic
#6340B7 #B76340 #40B763
tetradic
#6340B7 #B74058 #94B740 #40B79E
square
#6340B7 #B74058 #94B740 #40B79E
split-complementary
#6340B7 #B79E40 #58B740
monochromatic
#32205C #4A308A #6340B7 #8669CB #AB97DB

Accessibility & contrast

On white

7.12
#6340B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#6340B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6340B7
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340B7#FFFFFF#000000##FFFFFF
##6340B71.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABB
Deuteranopia (green-blind)
#0055B5
Tritanopia (blue-blind)
#4A5C76
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6340b7;
/* rgb */ color: rgb(99, 64, 183);
/* oklch */ color: oklch(47.9% 0.178 291.8);
Tailwind
colors: {
  custom: {
    50: '#9677cd',
    500: '#6340b7',
    950: '#000000',
  },
}
SCSS
$custom: #6340b7;
$custom-light: #9677cd;
$custom-dark: #000000;
JSON
{
  "hex": "#6340b7",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 257.647,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47872,
    "c": 0.17832,
    "h": 291.8
  },
  "luminance": 0.09738
}

Semantic roles & 50–950 ramp

primary
#6340B7
secondary
#B5C68D
accent
#D850B0
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6340B7

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

Preview Lab → · Contrast checker → · Palette generator →

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