#6340D9#6340D9

#6340D9 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.7% C 0.219 H 286.1°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#6340D9
RGBrgb(99, 64, 217)
HSLhsl(254, 67%, 55%)
HSVhsv(254, 71%, 85%)
CMYKcmyk(54.4%, 70.5%, 0%, 14.9%)
CIE-LABlab(40.13, 52.96, -73.16)
CIE-LCHlch(40.13, 90.32, 305.90°)
OKLaboklab(50.71% 0.0609 -0.2104)
OKLCHoklch(50.71% 0.219 286.1)
XYZxyz(19.4996, 11.3281, 66.7912)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340D9 #B6D940
analogous
#406AD9 #6340D9 #AF40D9
triadic
#6340D9 #D96340 #40D963
tetradic
#6340D9 #D9406A #B6D940 #40D9AF
square
#6340D9 #D9406A #B6D940 #40D9AF
split-complementary
#6340D9 #D9AF40 #6AD940
monochromatic
#331A84 #4624B7 #6340D9 #8D73E3 #B6A6ED

Accessibility & contrast

On white

6.43
#6340D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#6340D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6340D9#FFFFFF#000000##FFFFFF
##6340D91.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DE
Deuteranopia (green-blind)
#005AD6
Tritanopia (blue-blind)
#2F6988
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6340d9;
/* rgb */ color: rgb(99, 64, 217);
/* oklch */ color: oklch(50.7% 0.219 286.1);
Tailwind
colors: {
  custom: {
    50: '#9b78e6',
    500: '#6340d9',
    950: '#000000',
  },
}
SCSS
$custom: #6340d9;
$custom-light: #9b78e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6340d9",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 253.725,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.50706,
    "c": 0.21905,
    "h": 286.1
  },
  "luminance": 0.11329
}

Semantic roles & 50–950 ramp

primary
#6340D9
secondary
#CCDA9A
accent
#EA3EC2
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6340D9

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

Preview Lab → · Contrast checker → · Palette generator →

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