#6340EF#6340EF

#6340EF is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.7% C 0.244 H 283.3°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#6340EF
RGBrgb(99, 64, 239)
HSLhsl(252, 85%, 59%)
HSVhsv(252, 73%, 94%)
CMYKcmyk(58.6%, 73.2%, 0%, 6.3%)
CIE-LABlab(42.08, 59.22, -82.48)
CIE-LCHlch(42.08, 101.53, 305.68°)
OKLaboklab(52.68% 0.0562 -0.2377)
OKLCHoklch(52.68% 0.244 283.3)
XYZxyz(22.5542, 12.5499, 82.8785)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340EF #CCEF40
analogous
#4075EF #6340EF #BB40EF
triadic
#6340EF #EF6340 #40EF63
tetradic
#6340EF #EF4075 #CCEF40 #40EFBB
square
#6340EF #EF4075 #CCEF40 #40EFBB
split-complementary
#6340EF #EFBB40 #75EF40
monochromatic
#2C0EA7 #3C13DF #6340EF #9178F4 #BFB1F8

Accessibility & contrast

On white

5.98
#6340EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#6340EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6340EF
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340EF#FFFFFF#000000##FFFFFF
##6340EF1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069F4
Deuteranopia (green-blind)
#005DEC
Tritanopia (blue-blind)
#007195
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6340ef;
/* rgb */ color: rgb(99, 64, 239);
/* oklch */ color: oklch(52.7% 0.244 283.3);
Tailwind
colors: {
  custom: {
    50: '#9e79f6',
    500: '#6340ef',
    950: '#000000',
  },
}
SCSS
$custom: #6340ef;
$custom-light: #9e79f6;
$custom-dark: #000000;
JSON
{
  "hex": "#6340ef",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 239
  },
  "hsl": {
    "h": 252,
    "s": 84.541,
    "l": 59.412
  },
  "oklch": {
    "l": 0.52681,
    "c": 0.24425,
    "h": 283.3
  },
  "luminance": 0.12551
}

Semantic roles & 50–950 ramp

primary
#6340EF
secondary
#DAE7A3
accent
#FB2DD2
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6340EF

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

Preview Lab → · Contrast checker → · Palette generator →

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