#6340D8#6340D8

#6340D8 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.6% C 0.218 H 286.3°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#6340D8
RGBrgb(99, 64, 216)
HSLhsl(254, 66%, 55%)
HSVhsv(254, 70%, 85%)
CMYKcmyk(54.2%, 70.4%, 0%, 15.3%)
CIE-LABlab(40.04, 52.68, -72.73)
CIE-LCHlch(40.04, 89.80, 305.92°)
OKLaboklab(50.62% 0.061 -0.2092)
OKLCHoklch(50.62% 0.218 286.3)
XYZxyz(19.3699, 11.2763, 66.1083)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340D8 #B5D840
analogous
#4069D8 #6340D8 #AF40D8
triadic
#6340D8 #D86340 #40D863
tetradic
#6340D8 #D84069 #B5D840 #40D8AF
square
#6340D8 #D84069 #B5D840 #40D8AF
split-complementary
#6340D8 #D8AF40 #69D840
monochromatic
#331B83 #4625B6 #6340D8 #8D73E2 #B6A6ED

Accessibility & contrast

On white

6.45
#6340D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#6340D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6340D8#FFFFFF#000000##FFFFFF
##6340D81.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DD
Deuteranopia (green-blind)
#005AD5
Tritanopia (blue-blind)
#306888
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6340d8;
/* rgb */ color: rgb(99, 64, 216);
/* oklch */ color: oklch(50.6% 0.218 286.3);
Tailwind
colors: {
  custom: {
    50: '#9b78e5',
    500: '#6340d8',
    950: '#000000',
  },
}
SCSS
$custom: #6340d8;
$custom-light: #9b78e5;
$custom-dark: #000000;
JSON
{
  "hex": "#6340d8",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 253.816,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50619,
    "c": 0.21788,
    "h": 286.3
  },
  "luminance": 0.11277
}

Semantic roles & 50–950 ramp

primary
#6340D8
secondary
#CBDA9A
accent
#E93FC2
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6340D8

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

Preview Lab → · Contrast checker → · Palette generator →

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