#6340C8#6340C8

#6340C8 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.3% C 0.199 H 288.7°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#6340C8
RGBrgb(99, 64, 200)
HSLhsl(255, 55%, 52%)
HSVhsv(255, 68%, 78%)
CMYKcmyk(50.5%, 68%, 0%, 21.6%)
CIE-LABlab(38.71, 48.11, -65.67)
CIE-LCHlch(38.71, 81.41, 306.23°)
OKLaboklab(49.25% 0.0639 -0.1884)
OKLCHoklch(49.25% 0.199 288.7)
XYZxyz(17.4013, 10.4888, 55.7400)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340C8 #A5C840
analogous
#4061C8 #6340C8 #A740C8
triadic
#6340C8 #C86340 #40C863
tetradic
#6340C8 #C84061 #A5C840 #40C8A7
square
#6340C8 #C84061 #A5C840 #40C8A7
split-complementary
#6340C8 #C8A740 #61C840
monochromatic
#34206E #4A2D9D #6340C8 #8A70D6 #B19FE3

Accessibility & contrast

On white

6.78
#6340C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#6340C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6340C8#FFFFFF#000000##FFFFFF
##6340C81.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0058C5
Tritanopia (blue-blind)
#3F627F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6340c8;
/* rgb */ color: rgb(99, 64, 200);
/* oklch */ color: oklch(49.3% 0.199 288.7);
Tailwind
colors: {
  custom: {
    50: '#9877da',
    500: '#6340c8',
    950: '#000000',
  },
}
SCSS
$custom: #6340c8;
$custom-light: #9877da;
$custom-dark: #000000;
JSON
{
  "hex": "#6340c8",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 255.441,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49252,
    "c": 0.19898,
    "h": 288.7
  },
  "luminance": 0.1049
}

Semantic roles & 50–950 ramp

primary
#6340C8
secondary
#C0D094
accent
#DF49B8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6340C8

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

Preview Lab → · Contrast checker → · Palette generator →

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