#6742DF#6742DF

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

Color values

HEX#6742DF
RGBrgb(103, 66, 223)
HSLhsl(254, 71%, 57%)
HSVhsv(254, 70%, 87%)
CMYKcmyk(53.8%, 70.4%, 0%, 12.5%)
CIE-LABlab(41.38, 54.23, -74.52)
CIE-LCHlch(41.38, 92.17, 306.05°)
OKLaboklab(51.85% 0.0636 -0.2143)
OKLCHoklch(51.85% 0.224 286.5)
XYZxyz(20.8570, 12.1066, 71.0355)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742DF #BADF42
analogous
#426CDF #6742DF #B642DF
triadic
#6742DF #DF6742 #42DF67
tetradic
#6742DF #DF426C #BADF42 #42DFB6
square
#6742DF #DF426C #BADF42 #42DFB6
split-complementary
#6742DF #DFB642 #6CDF42
monochromatic
#34188E #4721C3 #6742DF #9176E8 #BBABF1

Accessibility & contrast

On white

6.14
#6742DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#6742DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742DF
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742DF#FFFFFF#000000##FFFFFF
##6742DF1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E4
Deuteranopia (green-blind)
#005DDC
Tritanopia (blue-blind)
#346C8C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6742df;
/* rgb */ color: rgb(103, 66, 223);
/* oklch */ color: oklch(51.8% 0.224 286.5);
Tailwind
colors: {
  custom: {
    50: '#9e7aea',
    500: '#6742df',
    950: '#000000',
  },
}
SCSS
$custom: #6742df;
$custom-light: #9e7aea;
$custom-dark: #000000;
JSON
{
  "hex": "#6742df",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 254.14,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51848,
    "c": 0.22354,
    "h": 286.5
  },
  "luminance": 0.12108
}

Semantic roles & 50–950 ramp

primary
#6742DF
secondary
#CFDF9E
accent
#EE3AC3
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6742DF

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

Preview Lab → · Contrast checker → · Palette generator →

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