#6742CF#6742CF

#6742CF is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.5% C 0.205 H 288.9°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#6742CF
RGBrgb(103, 66, 207)
HSLhsl(256, 59%, 54%)
HSVhsv(256, 68%, 81%)
CMYKcmyk(50.2%, 68.1%, 0%, 18.8%)
CIE-LABlab(40.06, 49.71, -67.51)
CIE-LCHlch(40.06, 83.84, 306.37°)
OKLaboklab(50.49% 0.0665 -0.1937)
OKLCHoklch(50.49% 0.205 288.9)
XYZxyz(18.8010, 11.2842, 60.2068)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742CF #AACF42
analogous
#4263CF #6742CF #AE42CF
triadic
#6742CF #CF6742 #42CF67
tetradic
#6742CF #CF4263 #AACF42 #42CFAE
square
#6742CF #CF4263 #AACF42 #42CFAE
split-complementary
#6742CF #CFAE42 #63CF42
monochromatic
#361F78 #4C2BA9 #6742CF #8E73DB #B6A4E8

Accessibility & contrast

On white

6.45
#6742CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#6742CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742CF
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742CF#FFFFFF#000000##FFFFFF
##6742CF1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#005BCC
Tritanopia (blue-blind)
#426683
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6742cf;
/* rgb */ color: rgb(103, 66, 207);
/* oklch */ color: oklch(50.5% 0.205 288.9);
Tailwind
colors: {
  custom: {
    50: '#9b79df',
    500: '#6742cf',
    950: '#000000',
  },
}
SCSS
$custom: #6742cf;
$custom-light: #9b79df;
$custom-dark: #000000;
JSON
{
  "hex": "#6742cf",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 255.745,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50488,
    "c": 0.2048,
    "h": 288.9
  },
  "luminance": 0.11285
}

Semantic roles & 50–950 ramp

primary
#6742CF
secondary
#C5D598
accent
#E345B9
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6742CF

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

Preview Lab → · Contrast checker → · Palette generator →

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