#6340E3#6340E3

#6340E3 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.6% C 0.231 H 284.8°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#6340E3
RGBrgb(99, 64, 227)
HSLhsl(253, 74%, 57%)
HSVhsv(253, 72%, 89%)
CMYKcmyk(56.4%, 71.8%, 0%, 11%)
CIE-LABlab(41.00, 55.81, -77.45)
CIE-LCHlch(41.00, 95.46, 305.78°)
OKLaboklab(51.59% 0.0588 -0.223)
OKLCHoklch(51.59% 0.231 284.8)
XYZxyz(20.8399, 11.8642, 73.8500)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340E3 #C0E340
analogous
#406FE3 #6340E3 #B440E3
triadic
#6340E3 #E36340 #40E363
tetradic
#6340E3 #E3406F #C0E340 #40E3B4
square
#6340E3 #E3406F #C0E340 #40E3B4
split-complementary
#6340E3 #E3B440 #6FE340
monochromatic
#311693 #421DC8 #6340E3 #8F75EB #BAABF3

Accessibility & contrast

On white

6.23
#6340E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#6340E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6340E3
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340E3#FFFFFF#000000##FFFFFF
##6340E31.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E8
Deuteranopia (green-blind)
#005CE0
Tritanopia (blue-blind)
#216C8E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6340e3;
/* rgb */ color: rgb(99, 64, 227);
/* oklch */ color: oklch(51.6% 0.231 284.8);
Tailwind
colors: {
  custom: {
    50: '#9c78ed',
    500: '#6340e3',
    950: '#000000',
  },
}
SCSS
$custom: #6340e3;
$custom-light: #9c78ed;
$custom-dark: #000000;
JSON
{
  "hex": "#6340e3",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 252.883,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51592,
    "c": 0.23061,
    "h": 284.8
  },
  "luminance": 0.11865
}

Semantic roles & 50–950 ramp

primary
#6340E3
secondary
#D2E19E
accent
#F137C9
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6340E3

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

Preview Lab → · Contrast checker → · Palette generator →

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