#6340E1#6340E1

#6340E1 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.228 H 285.0°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#6340E1
RGBrgb(99, 64, 225)
HSLhsl(253, 73%, 57%)
HSVhsv(253, 72%, 88%)
CMYKcmyk(56%, 71.6%, 0%, 11.8%)
CIE-LABlab(40.82, 55.24, -76.60)
CIE-LCHlch(40.82, 94.44, 305.80°)
OKLaboklab(51.41% 0.0592 -0.2205)
OKLCHoklch(51.41% 0.228 285)
XYZxyz(20.5655, 11.7545, 72.4047)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340E1 #BEE140
analogous
#406EE1 #6340E1 #B340E1
triadic
#6340E1 #E16340 #40E163
tetradic
#6340E1 #E1406E #BEE140 #40E1B3
square
#6340E1 #E1406E #BEE140 #40E1B3
split-complementary
#6340E1 #E1B340 #6EE140
monochromatic
#311790 #431FC5 #6340E1 #8E75E9 #B9AAF2

Accessibility & contrast

On white

6.27
#6340E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#6340E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6340E1
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340E1#FFFFFF#000000##FFFFFF
##6340E11.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E6
Deuteranopia (green-blind)
#005BDE
Tritanopia (blue-blind)
#256C8D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6340e1;
/* rgb */ color: rgb(99, 64, 225);
/* oklch */ color: oklch(51.4% 0.228 285.0);
Tailwind
colors: {
  custom: {
    50: '#9c78ec',
    500: '#6340e1',
    950: '#000000',
  },
}
SCSS
$custom: #6340e1;
$custom-light: #9c78ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6340e1",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 253.043,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51413,
    "c": 0.22831,
    "h": 285
  },
  "luminance": 0.11756
}

Semantic roles & 50–950 ramp

primary
#6340E1
secondary
#D1DF9D
accent
#F038C8
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6340E1

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

Preview Lab → · Contrast checker → · Palette generator →

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