#6340CA#6340CA

#6340CA is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.4% C 0.201 H 288.4°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#6340CA
RGBrgb(99, 64, 202)
HSLhsl(255, 57%, 52%)
HSVhsv(255, 68%, 79%)
CMYKcmyk(51%, 68.3%, 0%, 20.8%)
CIE-LABlab(38.87, 48.68, -66.57)
CIE-LCHlch(38.87, 82.47, 306.18°)
OKLaboklab(49.42% 0.0635 -0.1911)
OKLCHoklch(49.42% 0.201 288.4)
XYZxyz(17.6365, 10.5829, 56.9791)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340CA #A7CA40
analogous
#4062CA #6340CA #A840CA
triadic
#6340CA #CA6340 #40CA63
tetradic
#6340CA #CA4062 #A7CA40 #40CAA8
square
#6340CA #CA4062 #A7CA40 #40CAA8
split-complementary
#6340CA #CAA840 #62CA40
monochromatic
#341F70 #4A2CA0 #6340CA #8A70D7 #B1A0E5

Accessibility & contrast

On white

6.74
#6340CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#6340CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6340CA
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340CA#FFFFFF#000000##FFFFFF
##6340CA1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#0058C7
Tritanopia (blue-blind)
#3D6380
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6340ca;
/* rgb */ color: rgb(99, 64, 202);
/* oklch */ color: oklch(49.4% 0.201 288.4);
Tailwind
colors: {
  custom: {
    50: '#9977db',
    500: '#6340ca',
    950: '#000000',
  },
}
SCSS
$custom: #6340ca;
$custom-light: #9977db;
$custom-dark: #000000;
JSON
{
  "hex": "#6340ca",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 255.217,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.4942,
    "c": 0.20137,
    "h": 288.4
  },
  "luminance": 0.10584
}

Semantic roles & 50–950 ramp

primary
#6340CA
secondary
#C2D195
accent
#E048B9
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6340CA

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

Preview Lab → · Contrast checker → · Palette generator →

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