#6340CF#6340CF

#6340CF is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.8% C 0.207 H 287.6°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#6340CF
RGBrgb(99, 64, 207)
HSLhsl(255, 60%, 53%)
HSVhsv(255, 69%, 81%)
CMYKcmyk(52.2%, 69.1%, 0%, 18.8%)
CIE-LABlab(39.28, 50.11, -68.79)
CIE-LCHlch(39.28, 85.11, 306.07°)
OKLaboklab(49.84% 0.0627 -0.1976)
OKLCHoklch(49.84% 0.207 287.6)
XYZxyz(18.2382, 10.8235, 60.1475)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340CF #ACCF40
analogous
#4064CF #6340CF #AA40CF
triadic
#6340CF #CF6340 #40CF63
tetradic
#6340CF #CF4064 #ACCF40 #40CFAA
square
#6340CF #CF4064 #ACCF40 #40CFAA
split-complementary
#6340CF #CFAA40 #64CF40
monochromatic
#341E77 #492AA8 #6340CF #8B71DB #B3A2E8

Accessibility & contrast

On white

6.64
#6340CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#6340CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6340CF
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340CF#FFFFFF#000000##FFFFFF
##6340CF1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D3
Deuteranopia (green-blind)
#0059CC
Tritanopia (blue-blind)
#396583
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6340cf;
/* rgb */ color: rgb(99, 64, 207);
/* oklch */ color: oklch(49.8% 0.207 287.6);
Tailwind
colors: {
  custom: {
    50: '#9978df',
    500: '#6340cf',
    950: '#000000',
  },
}
SCSS
$custom: #6340cf;
$custom-light: #9978df;
$custom-dark: #000000;
JSON
{
  "hex": "#6340cf",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 254.685,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49843,
    "c": 0.20731,
    "h": 287.6
  },
  "luminance": 0.10824
}

Semantic roles & 50–950 ramp

primary
#6340CF
secondary
#C5D497
accent
#E345BC
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6340CF

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

Preview Lab → · Contrast checker → · Palette generator →

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