#6742CE#6742CE

#6742CE is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.4% C 0.204 H 289.1°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#6742CE
RGBrgb(103, 66, 206)
HSLhsl(256, 59%, 53%)
HSVhsv(256, 68%, 81%)
CMYKcmyk(50%, 68%, 0%, 19.2%)
CIE-LABlab(39.97, 49.43, -67.06)
CIE-LCHlch(39.97, 83.31, 306.39°)
OKLaboklab(50.41% 0.0666 -0.1924)
OKLCHoklch(50.41% 0.204 289.1)
XYZxyz(18.6791, 11.2354, 59.5650)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742CE #A9CE42
analogous
#4263CE #6742CE #AD42CE
triadic
#6742CE #CE6742 #42CE67
tetradic
#6742CE #CE4263 #A9CE42 #42CEAD
square
#6742CE #CE4263 #A9CE42 #42CEAD
split-complementary
#6742CE #CEAD42 #63CE42
monochromatic
#361F77 #4C2BA7 #6742CE #8E73DB #B5A3E7

Accessibility & contrast

On white

6.47
#6742CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#6742CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742CE
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742CE#FFFFFF#000000##FFFFFF
##6742CE1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#005BCB
Tritanopia (blue-blind)
#436583
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6742ce;
/* rgb */ color: rgb(103, 66, 206);
/* oklch */ color: oklch(50.4% 0.204 289.1);
Tailwind
colors: {
  custom: {
    50: '#9b79de',
    500: '#6742ce',
    950: '#000000',
  },
}
SCSS
$custom: #6742ce;
$custom-light: #9b79de;
$custom-dark: #000000;
JSON
{
  "hex": "#6742ce",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 255.857,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50405,
    "c": 0.20362,
    "h": 289.1
  },
  "luminance": 0.11236
}

Semantic roles & 50–950 ramp

primary
#6742CE
secondary
#C4D498
accent
#E246B9
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6742CE

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

Preview Lab → · Contrast checker → · Palette generator →

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