#6340E0#6340E0

#6340E0 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.3% C 0.227 H 285.2°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#6340E0
RGBrgb(99, 64, 224)
HSLhsl(253, 72%, 56%)
HSVhsv(253, 71%, 88%)
CMYKcmyk(55.8%, 71.4%, 0%, 12.2%)
CIE-LABlab(40.74, 54.96, -76.17)
CIE-LCHlch(40.74, 93.93, 305.81°)
OKLaboklab(51.32% 0.0594 -0.2192)
OKLCHoklch(51.32% 0.227 285.2)
XYZxyz(20.4295, 11.7001, 71.6884)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340E0 #BDE040
analogous
#406DE0 #6340E0 #B340E0
triadic
#6340E0 #E06340 #40E063
tetradic
#6340E0 #E0406D #BDE040 #40E0B3
square
#6340E0 #E0406D #BDE040 #40E0B3
split-complementary
#6340E0 #E0B340 #6DE040
monochromatic
#31178E #4320C3 #6340E0 #8E75E9 #B9A9F1

Accessibility & contrast

On white

6.29
#6340E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6340E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6340E0#FFFFFF#000000##FFFFFF
##6340E01.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E5
Deuteranopia (green-blind)
#005BDD
Tritanopia (blue-blind)
#266B8C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6340e0;
/* rgb */ color: rgb(99, 64, 224);
/* oklch */ color: oklch(51.3% 0.227 285.2);
Tailwind
colors: {
  custom: {
    50: '#9c78eb',
    500: '#6340e0',
    950: '#000000',
  },
}
SCSS
$custom: #6340e0;
$custom-light: #9c78eb;
$custom-dark: #000000;
JSON
{
  "hex": "#6340e0",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 224
  },
  "hsl": {
    "h": 253.125,
    "s": 72.072,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51324,
    "c": 0.22715,
    "h": 285.2
  },
  "luminance": 0.11701
}

Semantic roles & 50–950 ramp

primary
#6340E0
secondary
#D0DF9D
accent
#EF39C7
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6340E0

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

Preview Lab → · Contrast checker → · Palette generator →

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