#6742E0#6742E0

#6742E0 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 51.9% C 0.225 H 286.4°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#6742E0
RGBrgb(103, 66, 224)
HSLhsl(254, 72%, 57%)
HSVhsv(254, 71%, 88%)
CMYKcmyk(54%, 70.5%, 0%, 12.2%)
CIE-LABlab(41.47, 54.52, -74.95)
CIE-LCHlch(41.47, 92.68, 306.03°)
OKLaboklab(51.93% 0.0634 -0.2156)
OKLCHoklch(51.93% 0.225 286.4)
XYZxyz(20.9923, 12.1607, 71.7477)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742E0 #BBE042
analogous
#426CE0 #6742E0 #B642E0
triadic
#6742E0 #E06742 #42E067
tetradic
#6742E0 #E0426C #BBE042 #42E0B6
square
#6742E0 #E0426C #BBE042 #42E0B6
split-complementary
#6742E0 #E0B642 #6CE042
monochromatic
#341890 #4720C5 #6742E0 #9177E9 #BCABF1

Accessibility & contrast

On white

6.12
#6742E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#6742E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742E0
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742E0#FFFFFF#000000##FFFFFF
##6742E01.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E5
Deuteranopia (green-blind)
#005DDD
Tritanopia (blue-blind)
#336C8D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6742e0;
/* rgb */ color: rgb(103, 66, 224);
/* oklch */ color: oklch(51.9% 0.225 286.4);
Tailwind
colors: {
  custom: {
    50: '#9e7aeb',
    500: '#6742e0',
    950: '#000000',
  },
}
SCSS
$custom: #6742e0;
$custom-light: #9e7aeb;
$custom-dark: #000000;
JSON
{
  "hex": "#6742e0",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 224
  },
  "hsl": {
    "h": 254.051,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51935,
    "c": 0.22469,
    "h": 286.4
  },
  "luminance": 0.12162
}

Semantic roles & 50–950 ramp

primary
#6742E0
secondary
#D0DF9F
accent
#EF39C4
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6742E0

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

Preview Lab → · Contrast checker → · Palette generator →

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