#6740DB#6740DB

#6740DB is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.221 H 287.4°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#6740DB
RGBrgb(103, 64, 219)
HSLhsl(255, 68%, 55%)
HSVhsv(255, 71%, 86%)
CMYKcmyk(53%, 70.8%, 0%, 14.1%)
CIE-LABlab(40.68, 54.13, -73.40)
CIE-LCHlch(40.68, 91.20, 306.41°)
OKLaboklab(51.24% 0.066 -0.211)
OKLCHoklch(51.24% 0.221 287.4)
XYZxyz(20.2093, 11.6638, 68.1906)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740DB #B4DB40
analogous
#4066DB #6740DB #B540DB
triadic
#6740DB #DB6740 #40DB67
tetradic
#6740DB #DB4066 #B4DB40 #40DBB5
square
#6740DB #DB4066 #B4DB40 #40DBB5
split-complementary
#6740DB #DBB540 #66DB40
monochromatic
#351987 #4923BB #6740DB #9073E5 #B9A7EE

Accessibility & contrast

On white

6.30
#6740DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#6740DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740DB
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740DB#FFFFFF#000000##FFFFFF
##6740DB1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E0
Deuteranopia (green-blind)
#005CD8
Tritanopia (blue-blind)
#386989
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6740db;
/* rgb */ color: rgb(103, 64, 219);
/* oklch */ color: oklch(51.2% 0.221 287.4);
Tailwind
colors: {
  custom: {
    50: '#9d78e7',
    500: '#6740db',
    950: '#000000',
  },
}
SCSS
$custom: #6740db;
$custom-light: #9d78e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6740db",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 255.097,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.5124,
    "c": 0.22108,
    "h": 287.4
  },
  "luminance": 0.11665
}

Semantic roles & 50–950 ramp

primary
#6740DB
secondary
#CBDC9B
accent
#EB3DBF
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6740DB

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

Preview Lab → · Contrast checker → · Palette generator →

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