#6742E2#6742E2

#6742E2 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.1% C 0.227 H 286.1°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#6742E2
RGBrgb(103, 66, 226)
HSLhsl(254, 73%, 57%)
HSVhsv(254, 71%, 89%)
CMYKcmyk(54.4%, 70.8%, 0%, 11.4%)
CIE-LABlab(41.64, 55.08, -75.81)
CIE-LCHlch(41.64, 93.71, 306.00°)
OKLaboklab(52.11% 0.063 -0.2181)
OKLCHoklch(52.11% 0.227 286.1)
XYZxyz(21.2651, 12.2698, 73.1845)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742E2 #BDE242
analogous
#426DE2 #6742E2 #B742E2
triadic
#6742E2 #E26742 #42E267
tetradic
#6742E2 #E2426D #BDE242 #42E2B7
square
#6742E2 #E2426D #BDE242 #42E2B7
split-complementary
#6742E2 #E2B742 #6DE242
monochromatic
#331793 #461FC8 #6742E2 #9277EA #BCACF2

Accessibility & contrast

On white

6.08
#6742E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#6742E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742E2
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742E2#FFFFFF#000000##FFFFFF
##6742E21.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E7
Deuteranopia (green-blind)
#005DDF
Tritanopia (blue-blind)
#316D8E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6742e2;
/* rgb */ color: rgb(103, 66, 226);
/* oklch */ color: oklch(52.1% 0.227 286.1);
Tailwind
colors: {
  custom: {
    50: '#9e7aec',
    500: '#6742e2',
    950: '#000000',
  },
}
SCSS
$custom: #6742e2;
$custom-light: #9e7aec;
$custom-dark: #000000;
JSON
{
  "hex": "#6742e2",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 253.875,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52109,
    "c": 0.22699,
    "h": 286.1
  },
  "luminance": 0.12271
}

Semantic roles & 50–950 ramp

primary
#6742E2
secondary
#D1E09F
accent
#F038C5
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6742E2

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

Preview Lab → · Contrast checker → · Palette generator →

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