#6742D8#6742D8

#6742D8 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.215 H 287.5°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#6742D8
RGBrgb(103, 66, 216)
HSLhsl(255, 66%, 55%)
HSVhsv(255, 69%, 85%)
CMYKcmyk(52.3%, 69.4%, 0%, 15.3%)
CIE-LABlab(40.79, 52.26, -71.48)
CIE-LCHlch(40.79, 88.55, 306.17°)
OKLaboklab(51.25% 0.0649 -0.2054)
OKLCHoklch(51.25% 0.215 287.5)
XYZxyz(19.9327, 11.7369, 66.1676)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742D8 #B3D842
analogous
#4268D8 #6742D8 #B242D8
triadic
#6742D8 #D86742 #42D867
tetradic
#6742D8 #D84268 #B3D842 #42D8B2
square
#6742D8 #D84268 #B3D842 #42D8B2
split-complementary
#6742D8 #D8B242 #68D842
monochromatic
#351B84 #4A26B7 #6742D8 #9075E2 #B9A7ED

Accessibility & contrast

On white

6.27
#6742D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#6742D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742D8
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742D8#FFFFFF#000000##FFFFFF
##6742D81.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DC
Deuteranopia (green-blind)
#005CD5
Tritanopia (blue-blind)
#3B6988
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6742d8;
/* rgb */ color: rgb(103, 66, 216);
/* oklch */ color: oklch(51.2% 0.215 287.5);
Tailwind
colors: {
  custom: {
    50: '#9d79e5',
    500: '#6742d8',
    950: '#000000',
  },
}
SCSS
$custom: #6742d8;
$custom-light: #9d79e5;
$custom-dark: #000000;
JSON
{
  "hex": "#6742d8",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 254.8,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.51246,
    "c": 0.2154,
    "h": 287.5
  },
  "luminance": 0.11738
}

Semantic roles & 50–950 ramp

primary
#6742D8
secondary
#CBDA9C
accent
#E93FBF
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6742D8

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

Preview Lab → · Contrast checker → · Palette generator →

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