#6340AA#6340AA

#6340AA is a mid, vivid violet. Relative luminance 0.092; OKLCH L 46.9% C 0.162 H 294.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#6340AA
RGBrgb(99, 64, 170)
HSLhsl(260, 45%, 46%)
HSVhsv(260, 62%, 67%)
CMYKcmyk(41.8%, 62.4%, 0%, 33.3%)
CIE-LABlab(36.41, 39.62, -51.74)
CIE-LCHlch(36.41, 65.17, 307.44°)
OKLaboklab(46.87% 0.0673 -0.1475)
OKLCHoklch(46.87% 0.162 294.5)
XYZxyz(14.2328, 9.2214, 39.0524)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340AA #87AA40
analogous
#4052AA #6340AA #9840AA
triadic
#6340AA #AA6340 #40AA63
tetradic
#6340AA #AA4052 #87AA40 #40AA98
square
#6340AA #AA4052 #87AA40 #40AA98
split-complementary
#6340AA #AA9840 #52AA40
monochromatic
#2F1F51 #492F7E #6340AA #8363C4 #A68FD5

Accessibility & contrast

On white

7.38
#6340AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#6340AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6340AA#FFFFFF#000000##FFFFFF
##6340AA1.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#50586F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6340aa;
/* rgb */ color: rgb(99, 64, 170);
/* oklch */ color: oklch(46.9% 0.162 294.5);
Tailwind
colors: {
  custom: {
    50: '#9576c4',
    500: '#6340aa',
    950: '#000000',
  },
}
SCSS
$custom: #6340aa;
$custom-light: #9576c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6340aa",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 259.811,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46872,
    "c": 0.16213,
    "h": 294.5
  },
  "luminance": 0.09222
}

Semantic roles & 50–950 ramp

primary
#6340AA
secondary
#ADC086
accent
#D553AA
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6340AA

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

Preview Lab → · Contrast checker → · Palette generator →

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