#6740BC#6740BC

#6740BC is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.7% C 0.185 H 292.7°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#6740BC
RGBrgb(103, 64, 188)
HSLhsl(259, 49%, 49%)
HSVhsv(259, 66%, 74%)
CMYKcmyk(45.2%, 66%, 0%, 26.3%)
CIE-LABlab(38.16, 45.46, -59.52)
CIE-LCHlch(38.16, 74.90, 307.37°)
OKLaboklab(48.66% 0.0712 -0.1703)
OKLCHoklch(48.66% 0.185 292.7)
XYZxyz(16.5015, 10.1807, 48.6628)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6740BC #95BC40
analogous
#4057BC #6740BC #A540BC
triadic
#6740BC #BC6740 #40BC67
tetradic
#6740BC #BC4057 #95BC40 #40BCA5
square
#6740BC #BC4057 #95BC40 #40BCA5
split-complementary
#6740BC #BCA540 #57BC40
monochromatic
#352161 #4E308E #6740BC #8B6CCD #AF9ADD

Accessibility & contrast

On white

6.92
#6740BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#6740BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6740BC
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6740BC#FFFFFF#000000##FFFFFF
##6740BC1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#4E5E78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6740bc;
/* rgb */ color: rgb(103, 64, 188);
/* oklch */ color: oklch(48.7% 0.185 292.7);
Tailwind
colors: {
  custom: {
    50: '#9977d1',
    500: '#6740bc',
    950: '#000000',
  },
}
SCSS
$custom: #6740bc;
$custom-light: #9977d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6740bc",
  "rgb": {
    "r": 103,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 258.871,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48664,
    "c": 0.18453,
    "h": 292.7
  },
  "luminance": 0.10181
}

Semantic roles & 50–950 ramp

primary
#6740BC
secondary
#B7C98F
accent
#D94FAD
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0914
muted
#7E7B82

Preview Lab

Preview with #6740BC

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

Preview Lab → · Contrast checker → · Palette generator →

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