#6340AF#6340AF

#6340AF is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.3% C 0.168 H 293.4°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#6340AF
RGBrgb(99, 64, 175)
HSLhsl(259, 46%, 47%)
HSVhsv(259, 63%, 69%)
CMYKcmyk(43.4%, 63.4%, 0%, 31.4%)
CIE-LABlab(36.77, 41.02, -54.13)
CIE-LCHlch(36.77, 67.92, 307.16°)
OKLaboklab(47.25% 0.0669 -0.1545)
OKLCHoklch(47.25% 0.168 293.4)
XYZxyz(14.7148, 9.4142, 41.5910)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340AF #8CAF40
analogous
#4054AF #6340AF #9B40AF
triadic
#6340AF #AF6340 #40AF63
tetradic
#6340AF #AF4054 #8CAF40 #40AF9B
square
#6340AF #AF4054 #8CAF40 #40AF9B
split-complementary
#6340AF #AF9B40 #54AF40
monochromatic
#301F55 #4A3082 #6340AF #8465C7 #A892D7

Accessibility & contrast

On white

7.28
#6340AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#6340AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6340AF#FFFFFF#000000##FFFFFF
##6340AF1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B3
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#4E5A71
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6340af;
/* rgb */ color: rgb(99, 64, 175);
/* oklch */ color: oklch(47.3% 0.168 293.4);
Tailwind
colors: {
  custom: {
    50: '#9577c8',
    500: '#6340af',
    950: '#000000',
  },
}
SCSS
$custom: #6340af;
$custom-light: #9577c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6340af",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 258.919,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4725,
    "c": 0.1684,
    "h": 293.4
  },
  "luminance": 0.09415
}

Semantic roles & 50–950 ramp

primary
#6340AF
secondary
#B0C388
accent
#D652AC
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6340AF

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

Preview Lab → · Contrast checker → · Palette generator →

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