#6742E7#6742E7

#6742E7 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.5% C 0.233 H 285.4°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#6742E7
RGBrgb(103, 66, 231)
HSLhsl(253, 77%, 58%)
HSVhsv(253, 71%, 91%)
CMYKcmyk(55.4%, 71.4%, 0%, 9.4%)
CIE-LABlab(42.07, 56.49, -77.94)
CIE-LCHlch(42.07, 96.26, 305.94°)
OKLaboklab(52.55% 0.062 -0.2243)
OKLCHoklch(52.55% 0.233 285.4)
XYZxyz(21.9612, 12.5482, 76.8507)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742E7 #C2E742
analogous
#426FE7 #6742E7 #BA42E7
triadic
#6742E7 #E76742 #42E767
tetradic
#6742E7 #E7426F #C2E742 #42E7BA
square
#6742E7 #E7426F #C2E742 #42E7BA
split-complementary
#6742E7 #E7BA42 #6FE742
monochromatic
#32149B #441BD1 #6742E7 #9378EE #BEAFF5

Accessibility & contrast

On white

5.98
#6742E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#6742E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742E7
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742E7#FFFFFF#000000##FFFFFF
##6742E71.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EC
Deuteranopia (green-blind)
#005EE4
Tritanopia (blue-blind)
#2A6F91
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6742e7;
/* rgb */ color: rgb(103, 66, 231);
/* oklch */ color: oklch(52.5% 0.233 285.4);
Tailwind
colors: {
  custom: {
    50: '#9f7af0',
    500: '#6742e7',
    950: '#000000',
  },
}
SCSS
$custom: #6742e7;
$custom-light: #9f7af0;
$custom-dark: #000000;
JSON
{
  "hex": "#6742e7",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 231
  },
  "hsl": {
    "h": 253.455,
    "s": 77.465,
    "l": 58.235
  },
  "oklch": {
    "l": 0.52549,
    "c": 0.23273,
    "h": 285.4
  },
  "luminance": 0.1255
}

Semantic roles & 50–950 ramp

primary
#6742E7
secondary
#D5E3A2
accent
#F434C9
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6742E7

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

Preview Lab → · Contrast checker → · Palette generator →

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