#6742CC#6742CC

#6742CC is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.2% C 0.201 H 289.4°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#6742CC
RGBrgb(103, 66, 204)
HSLhsl(256, 58%, 53%)
HSVhsv(256, 68%, 80%)
CMYKcmyk(49.5%, 67.6%, 0%, 20%)
CIE-LABlab(39.81, 48.87, -66.17)
CIE-LCHlch(39.81, 82.26, 306.45°)
OKLaboklab(50.24% 0.0669 -0.1898)
OKLCHoklch(50.24% 0.201 289.4)
XYZxyz(18.4377, 11.1388, 58.2936)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742CC #A7CC42
analogous
#4262CC #6742CC #AC42CC
triadic
#6742CC #CC6742 #42CC67
tetradic
#6742CC #CC4262 #A7CC42 #42CCAC
square
#6742CC #CC4262 #A7CC42 #42CCAC
split-complementary
#6742CC #CCAC42 #62CC42
monochromatic
#361F74 #4D2CA4 #6742CC #8E72D9 #B5A2E6

Accessibility & contrast

On white

6.51
#6742CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#6742CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742CC
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742CC#FFFFFF#000000##FFFFFF
##6742CC1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#446582
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6742cc;
/* rgb */ color: rgb(103, 66, 204);
/* oklch */ color: oklch(50.2% 0.201 289.4);
Tailwind
colors: {
  custom: {
    50: '#9b79dd',
    500: '#6742cc',
    950: '#000000',
  },
}
SCSS
$custom: #6742cc;
$custom-light: #9b79dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6742cc",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 256.087,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5024,
    "c": 0.20125,
    "h": 289.4
  },
  "luminance": 0.1114
}

Semantic roles & 50–950 ramp

primary
#6742CC
secondary
#C3D397
accent
#E147B8
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6742CC

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

Preview Lab → · Contrast checker → · Palette generator →

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