#6340CB#6340CB

#6340CB is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.5% C 0.203 H 288.2°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#6340CB
RGBrgb(99, 64, 203)
HSLhsl(255, 57%, 52%)
HSVhsv(255, 68%, 80%)
CMYKcmyk(51.2%, 68.5%, 0%, 20.4%)
CIE-LABlab(38.95, 48.97, -67.01)
CIE-LCHlch(38.95, 83.00, 306.16°)
OKLaboklab(49.5% 0.0634 -0.1924)
OKLCHoklch(49.5% 0.203 288.2)
XYZxyz(17.7553, 10.6304, 57.6047)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6340CB #A8CB40
analogous
#4062CB #6340CB #A940CB
triadic
#6340CB #CB6340 #40CB63
tetradic
#6340CB #CB4062 #A8CB40 #40CBA9
square
#6340CB #CB4062 #A8CB40 #40CBA9
split-complementary
#6340CB #CBA940 #62CB40
monochromatic
#341F72 #4A2CA2 #6340CB #8A70D8 #B2A0E5

Accessibility & contrast

On white

6.72
#6340CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#6340CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6340CB
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6340CB#FFFFFF#000000##FFFFFF
##6340CB1.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6340cb;
/* rgb */ color: rgb(99, 64, 203);
/* oklch */ color: oklch(49.5% 0.203 288.2);
Tailwind
colors: {
  custom: {
    50: '#9977dc',
    500: '#6340cb',
    950: '#000000',
  },
}
SCSS
$custom: #6340cb;
$custom-light: #9977dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6340cb",
  "rgb": {
    "r": 99,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 255.108,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49504,
    "c": 0.20256,
    "h": 288.2
  },
  "luminance": 0.10631
}

Semantic roles & 50–950 ramp

primary
#6340CB
secondary
#C2D295
accent
#E047BA
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6340CB

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

Preview Lab → · Contrast checker → · Palette generator →

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