#6740CC#6740CC

#6740CC is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.0% C 0.204 H 289.7°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#6740CC
RGBrgb(103, 64, 204)
HSLhsl(257, 58%, 53%)
HSVhsv(257, 69%, 80%)
CMYKcmyk(49.5%, 68.6%, 0%, 20%)
CIE-LABlab(39.43, 49.93, -66.80)
CIE-LCHlch(39.43, 83.40, 306.78°)
OKLaboklab(49.96% 0.0688 -0.1916)
OKLCHoklch(49.96% 0.204 289.7)
XYZxyz(18.3229, 10.9092, 58.2553)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740CC #A5CC40
analogous
#405FCC #6740CC #AD40CC
triadic
#6740CC #CC6740 #40CC67
tetradic
#6740CC #CC405F #A5CC40 #40CCAD
square
#6740CC #CC405F #A5CC40 #40CCAD
split-complementary
#6740CC #CCAD40 #5FCC40
monochromatic
#361F73 #4D2CA3 #6740CC #8D70D9 #B4A1E6

Accessibility & contrast

On white

6.60
#6740CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#6740CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740CC
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740CC#FFFFFF#000000##FFFFFF
##6740CC1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#446481
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6740cc;
/* rgb */ color: rgb(103, 64, 204);
/* oklch */ color: oklch(50.0% 0.204 289.7);
Tailwind
colors: {
  custom: {
    50: '#9b78dd',
    500: '#6740cc',
    950: '#000000',
  },
}
SCSS
$custom: #6740cc;
$custom-light: #9b78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6740cc",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 256.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49964,
    "c": 0.20361,
    "h": 289.7
  },
  "luminance": 0.1091
}

Semantic roles & 50–950 ramp

primary
#6740CC
secondary
#C1D295
accent
#E147B6
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6740CC

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

Preview Lab → · Contrast checker → · Palette generator →

#6740CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva