#6742BC#6742BC

#6742BC is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.0% C 0.182 H 292.3°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#6742BC
RGBrgb(103, 66, 188)
HSLhsl(258, 48%, 50%)
HSVhsv(258, 65%, 74%)
CMYKcmyk(45.2%, 64.9%, 0%, 26.3%)
CIE-LABlab(38.57, 44.37, -58.87)
CIE-LCHlch(38.57, 73.71, 307.00°)
OKLaboklab(48.96% 0.069 -0.1683)
OKLCHoklch(48.96% 0.182 292.3)
XYZxyz(16.6163, 10.4103, 48.7011)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742BC #97BC42
analogous
#425ABC #6742BC #A442BC
triadic
#6742BC #BC6742 #42BC67
tetradic
#6742BC #BC425A #97BC42 #42BCA4
square
#6742BC #BC425A #97BC42 #42BCA4
split-complementary
#6742BC #BCA442 #5ABC42
monochromatic
#352261 #4E328F #6742BC #8B6FCC #B09CDC

Accessibility & contrast

On white

6.81
#6742BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#6742BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742BC
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742BC#FFFFFF#000000##FFFFFF
##6742BC1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#0058B9
Tritanopia (blue-blind)
#4E5F79
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6742bc;
/* rgb */ color: rgb(103, 66, 188);
/* oklch */ color: oklch(49.0% 0.182 292.3);
Tailwind
colors: {
  custom: {
    50: '#9978d1',
    500: '#6742bc',
    950: '#000000',
  },
}
SCSS
$custom: #6742bc;
$custom-light: #9978d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6742bc",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 258.197,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48955,
    "c": 0.18194,
    "h": 292.3
  },
  "luminance": 0.10411
}

Semantic roles & 50–950 ramp

primary
#6742BC
secondary
#B8C991
accent
#D850AF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6742BC

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

Preview Lab → · Contrast checker → · Palette generator →

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