#6742BB#6742BB

#6742BB is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.9% C 0.181 H 292.5°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#6742BB
RGBrgb(103, 66, 187)
HSLhsl(258, 48%, 50%)
HSVhsv(258, 65%, 73%)
CMYKcmyk(44.9%, 64.7%, 0%, 26.7%)
CIE-LABlab(38.49, 44.09, -58.40)
CIE-LCHlch(38.49, 73.17, 307.05°)
OKLaboklab(48.88% 0.0692 -0.167)
OKLCHoklch(48.88% 0.181 292.5)
XYZxyz(16.5089, 10.3673, 48.1353)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742BB #96BB42
analogous
#425ABB #6742BB #A442BB
triadic
#6742BB #BB6742 #42BB67
tetradic
#6742BB #BB425A #96BB42 #42BBA4
square
#6742BB #BB425A #96BB42 #42BBA4
split-complementary
#6742BB #BBA442 #5ABB42
monochromatic
#352261 #4E328E #6742BB #8B6ECC #AF9CDC

Accessibility & contrast

On white

6.83
#6742BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#6742BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742BB
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742BB#FFFFFF#000000##FFFFFF
##6742BB1.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#0058B8
Tritanopia (blue-blind)
#4F5F78
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6742bb;
/* rgb */ color: rgb(103, 66, 187);
/* oklch */ color: oklch(48.9% 0.181 292.5);
Tailwind
colors: {
  custom: {
    50: '#9978d0',
    500: '#6742bb',
    950: '#000000',
  },
}
SCSS
$custom: #6742bb;
$custom-light: #9978d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6742bb",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 258.347,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48878,
    "c": 0.18071,
    "h": 292.5
  },
  "luminance": 0.10368
}

Semantic roles & 50–950 ramp

primary
#6742BB
secondary
#B7C891
accent
#D750AE
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6742BB

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

Preview Lab → · Contrast checker → · Palette generator →

#6742BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva