#6742D6#6742D6

#6742D6 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.1% C 0.213 H 287.8°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#6742D6
RGBrgb(103, 66, 214)
HSLhsl(255, 64%, 55%)
HSVhsv(255, 69%, 84%)
CMYKcmyk(51.9%, 69.2%, 0%, 16.1%)
CIE-LABlab(40.63, 51.69, -70.61)
CIE-LCHlch(40.63, 87.51, 306.21°)
OKLaboklab(51.08% 0.0653 -0.2028)
OKLCHoklch(51.08% 0.213 287.8)
XYZxyz(19.6758, 11.6341, 64.8141)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742D6 #B1D642
analogous
#4267D6 #6742D6 #B142D6
triadic
#6742D6 #D66742 #42D667
tetradic
#6742D6 #D64267 #B1D642 #42D6B1
square
#6742D6 #D64267 #B1D642 #42D6B1
split-complementary
#6742D6 #D6B142 #67D642
monochromatic
#351C82 #4A27B4 #6742D6 #8F74E1 #B8A7EC

Accessibility & contrast

On white

6.31
#6742D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#6742D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742D6
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742D6#FFFFFF#000000##FFFFFF
##6742D61.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DA
Deuteranopia (green-blind)
#005CD3
Tritanopia (blue-blind)
#3C6887
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6742d6;
/* rgb */ color: rgb(103, 66, 214);
/* oklch */ color: oklch(51.1% 0.213 287.8);
Tailwind
colors: {
  custom: {
    50: '#9c79e4',
    500: '#6742d6',
    950: '#000000',
  },
}
SCSS
$custom: #6742d6;
$custom-light: #9c79e4;
$custom-dark: #000000;
JSON
{
  "hex": "#6742d6",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 255,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51076,
    "c": 0.21306,
    "h": 287.8
  },
  "luminance": 0.11635
}

Semantic roles & 50–950 ramp

primary
#6742D6
secondary
#C9D99B
accent
#E740BE
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6742D6

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

Preview Lab → · Contrast checker → · Palette generator →

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