#6742D9#6742D9

#6742D9 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.3% C 0.217 H 287.4°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#6742D9
RGBrgb(103, 66, 217)
HSLhsl(255, 67%, 55%)
HSVhsv(255, 70%, 85%)
CMYKcmyk(52.5%, 69.6%, 0%, 14.9%)
CIE-LABlab(40.88, 52.54, -71.92)
CIE-LCHlch(40.88, 89.07, 306.15°)
OKLaboklab(51.33% 0.0647 -0.2067)
OKLCHoklch(51.33% 0.217 287.4)
XYZxyz(20.0624, 11.7887, 66.8505)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742D9 #B4D942
analogous
#4268D9 #6742D9 #B242D9
triadic
#6742D9 #D96742 #42D967
tetradic
#6742D9 #D94268 #B4D942 #42D9B2
square
#6742D9 #D94268 #B4D942 #42D9B2
split-complementary
#6742D9 #D9B242 #68D942
monochromatic
#351B86 #4925B9 #6742D9 #9075E3 #B9A8ED

Accessibility & contrast

On white

6.25
#6742D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6742D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742D9
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742D9#FFFFFF#000000##FFFFFF
##6742D91.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DE
Deuteranopia (green-blind)
#005CD6
Tritanopia (blue-blind)
#3A6989
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6742d9;
/* rgb */ color: rgb(103, 66, 217);
/* oklch */ color: oklch(51.3% 0.217 287.4);
Tailwind
colors: {
  custom: {
    50: '#9d79e6',
    500: '#6742d9',
    950: '#000000',
  },
}
SCSS
$custom: #6742d9;
$custom-light: #9d79e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6742d9",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 254.702,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51331,
    "c": 0.21656,
    "h": 287.4
  },
  "luminance": 0.1179
}

Semantic roles & 50–950 ramp

primary
#6742D9
secondary
#CBDB9C
accent
#E93EC0
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6742D9

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

Preview Lab → · Contrast checker → · Palette generator →

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