#6742E1#6742E1

#6742E1 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.0% C 0.226 H 286.3°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#6742E1
RGBrgb(103, 66, 225)
HSLhsl(254, 73%, 57%)
HSVhsv(254, 71%, 88%)
CMYKcmyk(54.2%, 70.7%, 0%, 11.8%)
CIE-LABlab(41.56, 54.80, -75.38)
CIE-LCHlch(41.56, 93.20, 306.02°)
OKLaboklab(52.02% 0.0632 -0.2168)
OKLCHoklch(52.02% 0.226 286.3)
XYZxyz(21.1283, 12.2151, 72.4640)
Luminance0.1222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742E1 #BCE142
analogous
#426DE1 #6742E1 #B642E1
triadic
#6742E1 #E16742 #42E167
tetradic
#6742E1 #E1426D #BCE142 #42E1B6
square
#6742E1 #E1426D #BCE142 #42E1B6
split-complementary
#6742E1 #E1B642 #6DE142
monochromatic
#341792 #461FC6 #6742E1 #9177E9 #BCACF2

Accessibility & contrast

On white

6.10
#6742E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#6742E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742E1
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742E1#FFFFFF#000000##FFFFFF
##6742E11.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E6
Deuteranopia (green-blind)
#005DDE
Tritanopia (blue-blind)
#326C8D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6742e1;
/* rgb */ color: rgb(103, 66, 225);
/* oklch */ color: oklch(52.0% 0.226 286.3);
Tailwind
colors: {
  custom: {
    50: '#9e7aec',
    500: '#6742e1',
    950: '#000000',
  },
}
SCSS
$custom: #6742e1;
$custom-light: #9e7aec;
$custom-dark: #000000;
JSON
{
  "hex": "#6742e1",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 253.962,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52022,
    "c": 0.22585,
    "h": 286.3
  },
  "luminance": 0.12216
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6742E1

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

Preview Lab → · Contrast checker → · Palette generator →

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