#6340E2#6340E2

#6340E2 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.5% C 0.229 H 284.9°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#6340E2
RGBrgb(99, 64, 226)
HSLhsl(253, 74%, 57%)
HSVhsv(253, 72%, 89%)
CMYKcmyk(56.2%, 71.7%, 0%, 11.4%)
CIE-LABlab(40.91, 55.53, -77.02)
CIE-LCHlch(40.91, 94.95, 305.79°)
OKLaboklab(51.5% 0.059 -0.2217)
OKLCHoklch(51.5% 0.229 284.9)
XYZxyz(20.7023, 11.8092, 73.1253)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340E2 #BFE240
analogous
#406EE2 #6340E2 #B440E2
triadic
#6340E2 #E26340 #40E263
tetradic
#6340E2 #E2406E #BFE240 #40E2B4
square
#6340E2 #E2406E #BFE240 #40E2B4
split-complementary
#6340E2 #E2B440 #6EE240
monochromatic
#311692 #431EC7 #6340E2 #8E75EA #BAAAF2

Accessibility & contrast

On white

6.25
#6340E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6340E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6340E2
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340E2#FFFFFF#000000##FFFFFF
##6340E21.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E7
Deuteranopia (green-blind)
#005BDF
Tritanopia (blue-blind)
#236C8D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6340e2;
/* rgb */ color: rgb(99, 64, 226);
/* oklch */ color: oklch(51.5% 0.229 284.9);
Tailwind
colors: {
  custom: {
    50: '#9c78ec',
    500: '#6340e2',
    950: '#000000',
  },
}
SCSS
$custom: #6340e2;
$custom-light: #9c78ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6340e2",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 252.963,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51502,
    "c": 0.22946,
    "h": 284.9
  },
  "luminance": 0.1181
}

Semantic roles & 50–950 ramp

primary
#6340E2
secondary
#D2E09E
accent
#F038C8
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6340E2

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

Preview Lab → · Contrast checker → · Palette generator →

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