#6742EB#6742EB

#6742EB is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.9% C 0.237 H 284.9°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#6742EB
RGBrgb(103, 66, 235)
HSLhsl(253, 81%, 59%)
HSVhsv(253, 72%, 92%)
CMYKcmyk(56.2%, 71.9%, 0%, 7.8%)
CIE-LABlab(42.42, 57.62, -79.63)
CIE-LCHlch(42.42, 98.29, 305.89°)
OKLaboklab(52.9% 0.0612 -0.2293)
OKLCHoklch(52.9% 0.237 284.9)
XYZxyz(22.5326, 12.7768, 79.8600)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742EB #C6EB42
analogous
#4272EB #6742EB #BC42EB
triadic
#6742EB #EB6742 #42EB67
tetradic
#6742EB #EB4272 #C6EB42 #42EBBC
square
#6742EB #EB4272 #C6EB42 #42EBBC
split-complementary
#6742EB #EBBC42 #72EB42
monochromatic
#3111A2 #4117D9 #6742EB #9479F1 #C0B1F7

Accessibility & contrast

On white

5.91
#6742EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#6742EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742EB
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742EB#FFFFFF#000000##FFFFFF
##6742EB1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069F0
Deuteranopia (green-blind)
#005FE8
Tritanopia (blue-blind)
#247093
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6742eb;
/* rgb */ color: rgb(103, 66, 235);
/* oklch */ color: oklch(52.9% 0.237 284.9);
Tailwind
colors: {
  custom: {
    50: '#9f7af3',
    500: '#6742eb',
    950: '#000000',
  },
}
SCSS
$custom: #6742eb;
$custom-light: #9f7af3;
$custom-dark: #000000;
JSON
{
  "hex": "#6742eb",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 235
  },
  "hsl": {
    "h": 253.136,
    "s": 80.861,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52904,
    "c": 0.23728,
    "h": 284.9
  },
  "luminance": 0.12778
}

Semantic roles & 50–950 ramp

primary
#6742EB
secondary
#D7E6A3
accent
#F731CC
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6742EB

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

Preview Lab → · Contrast checker → · Palette generator →

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