#6742E3#6742E3

#6742E3 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.2% C 0.228 H 286.0°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#6742E3
RGBrgb(103, 66, 227)
HSLhsl(254, 74%, 57%)
HSVhsv(254, 71%, 89%)
CMYKcmyk(54.6%, 70.9%, 0%, 11%)
CIE-LABlab(41.73, 55.36, -76.24)
CIE-LCHlch(41.73, 94.22, 305.99°)
OKLaboklab(52.2% 0.0628 -0.2193)
OKLCHoklch(52.2% 0.228 286)
XYZxyz(21.4027, 12.3249, 73.9093)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742E3 #BEE342
analogous
#426DE3 #6742E3 #B842E3
triadic
#6742E3 #E36742 #42E367
tetradic
#6742E3 #E3426D #BEE342 #42E3B8
square
#6742E3 #E3426D #BEE342 #42E3B8
split-complementary
#6742E3 #E3B842 #6DE342
monochromatic
#331695 #451ECA #6742E3 #9277EB #BDADF3

Accessibility & contrast

On white

6.06
#6742E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#6742E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742E3
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742E3#FFFFFF#000000##FFFFFF
##6742E31.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E8
Deuteranopia (green-blind)
#005EE0
Tritanopia (blue-blind)
#2F6D8E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6742e3;
/* rgb */ color: rgb(103, 66, 227);
/* oklch */ color: oklch(52.2% 0.228 286.0);
Tailwind
colors: {
  custom: {
    50: '#9e7aed',
    500: '#6742e3',
    950: '#000000',
  },
}
SCSS
$custom: #6742e3;
$custom-light: #9e7aed;
$custom-dark: #000000;
JSON
{
  "hex": "#6742e3",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 227
  },
  "hsl": {
    "h": 253.789,
    "s": 74.194,
    "l": 57.451
  },
  "oklch": {
    "l": 0.52197,
    "c": 0.22815,
    "h": 286
  },
  "luminance": 0.12326
}

Semantic roles & 50–950 ramp

primary
#6742E3
secondary
#D2E1A0
accent
#F137C6
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6742E3

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

Preview Lab → · Contrast checker → · Palette generator →

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