#6740CB#6740CB

#6740CB is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 49.9% C 0.202 H 289.9°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#6740CB
RGBrgb(103, 64, 203)
HSLhsl(257, 57%, 52%)
HSVhsv(257, 68%, 80%)
CMYKcmyk(49.3%, 68.5%, 0%, 20.4%)
CIE-LABlab(39.35, 49.65, -66.35)
CIE-LCHlch(39.35, 82.87, 306.81°)
OKLaboklab(49.88% 0.069 -0.1903)
OKLCHoklch(49.88% 0.202 289.9)
XYZxyz(18.2033, 10.8614, 57.6257)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740CB #A4CB40
analogous
#405ECB #6740CB #AD40CB
triadic
#6740CB #CB6740 #40CB67
tetradic
#6740CB #CB405E #A4CB40 #40CBAD
square
#6740CB #CB405E #A4CB40 #40CBAD
split-complementary
#6740CB #CBAD40 #5ECB40
monochromatic
#361F72 #4D2CA2 #6740CB #8D70D8 #B4A0E5

Accessibility & contrast

On white

6.62
#6740CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#6740CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740CB
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740CB#FFFFFF#000000##FFFFFF
##6740CB1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCF
Deuteranopia (green-blind)
#0059C8
Tritanopia (blue-blind)
#456380
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6740cb;
/* rgb */ color: rgb(103, 64, 203);
/* oklch */ color: oklch(49.9% 0.202 289.9);
Tailwind
colors: {
  custom: {
    50: '#9b78dc',
    500: '#6740cb',
    950: '#000000',
  },
}
SCSS
$custom: #6740cb;
$custom-light: #9b78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6740cb",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 256.835,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.4988,
    "c": 0.20243,
    "h": 289.9
  },
  "luminance": 0.10862
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6740CB

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

Preview Lab → · Contrast checker → · Palette generator →

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