#6742DE#6742DE

#6742DE is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.8% C 0.222 H 286.7°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#6742DE
RGBrgb(103, 66, 222)
HSLhsl(254, 70%, 56%)
HSVhsv(254, 70%, 87%)
CMYKcmyk(53.6%, 70.3%, 0%, 12.9%)
CIE-LABlab(41.30, 53.95, -74.09)
CIE-LCHlch(41.30, 91.65, 306.06°)
OKLaboklab(51.76% 0.0638 -0.213)
OKLCHoklch(51.76% 0.222 286.7)
XYZxyz(20.7226, 12.0528, 70.3276)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742DE #B9DE42
analogous
#426BDE #6742DE #B542DE
triadic
#6742DE #DE6742 #42DE67
tetradic
#6742DE #DE426B #B9DE42 #42DEB5
square
#6742DE #DE426B #B9DE42 #42DEB5
split-complementary
#6742DE #DEB542 #6BDE42
monochromatic
#34198D #4822C1 #6742DE #9176E7 #BBAAF0

Accessibility & contrast

On white

6.16
#6742DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#6742DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742DE
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742DE#FFFFFF#000000##FFFFFF
##6742DE1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E3
Deuteranopia (green-blind)
#005DDB
Tritanopia (blue-blind)
#356B8C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6742de;
/* rgb */ color: rgb(103, 66, 222);
/* oklch */ color: oklch(51.8% 0.222 286.7);
Tailwind
colors: {
  custom: {
    50: '#9d7ae9',
    500: '#6742de',
    950: '#000000',
  },
}
SCSS
$custom: #6742de;
$custom-light: #9d7ae9;
$custom-dark: #000000;
JSON
{
  "hex": "#6742de",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 222
  },
  "hsl": {
    "h": 254.231,
    "s": 70.27,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51761,
    "c": 0.22238,
    "h": 286.7
  },
  "luminance": 0.12054
}

Semantic roles & 50–950 ramp

primary
#6742DE
secondary
#CFDE9E
accent
#ED3BC3
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6742DE

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

Preview Lab → · Contrast checker → · Palette generator →

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