#6742EA#6742EA

#6742EA is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.8% C 0.236 H 285.1°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#6742EA
RGBrgb(103, 66, 234)
HSLhsl(253, 80%, 59%)
HSVhsv(253, 72%, 92%)
CMYKcmyk(56%, 71.8%, 0%, 8.2%)
CIE-LABlab(42.34, 57.34, -79.21)
CIE-LCHlch(42.34, 97.79, 305.90°)
OKLaboklab(52.82% 0.0614 -0.228)
OKLCHoklch(52.82% 0.236 285.1)
XYZxyz(22.3885, 12.7192, 79.1013)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742EA #C5EA42
analogous
#4271EA #6742EA #BB42EA
triadic
#6742EA #EA6742 #42EA67
tetradic
#6742EA #EA4271 #C5EA42 #42EABB
square
#6742EA #EA4271 #C5EA42 #42EABB
split-complementary
#6742EA #EABB42 #71EA42
monochromatic
#3112A0 #4218D7 #6742EA #9379F0 #C0B0F6

Accessibility & contrast

On white

5.93
#6742EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#6742EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742EA
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742EA#FFFFFF#000000##FFFFFF
##6742EA1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069EF
Deuteranopia (green-blind)
#005FE7
Tritanopia (blue-blind)
#267092
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6742ea;
/* rgb */ color: rgb(103, 66, 234);
/* oklch */ color: oklch(52.8% 0.236 285.1);
Tailwind
colors: {
  custom: {
    50: '#9f7af2',
    500: '#6742ea',
    950: '#000000',
  },
}
SCSS
$custom: #6742ea;
$custom-light: #9f7af2;
$custom-dark: #000000;
JSON
{
  "hex": "#6742ea",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 253.214,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52815,
    "c": 0.23615,
    "h": 285.1
  },
  "luminance": 0.12721
}

Semantic roles & 50–950 ramp

primary
#6742EA
secondary
#D6E5A3
accent
#F631CB
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6742EA

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

Preview Lab → · Contrast checker → · Palette generator →

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