#6742D2#6742D2

#6742D2 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.7% C 0.208 H 288.5°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#6742D2
RGBrgb(103, 66, 210)
HSLhsl(255, 62%, 54%)
HSVhsv(255, 69%, 82%)
CMYKcmyk(51%, 68.6%, 0%, 17.6%)
CIE-LABlab(40.30, 50.56, -68.84)
CIE-LCHlch(40.30, 85.41, 306.29°)
OKLaboklab(50.74% 0.066 -0.1976)
OKLCHoklch(50.74% 0.208 288.5)
XYZxyz(19.1712, 11.4323, 62.1568)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742D2 #ADD242
analogous
#4265D2 #6742D2 #AF42D2
triadic
#6742D2 #D26742 #42D267
tetradic
#6742D2 #D24265 #ADD242 #42D2AF
square
#6742D2 #D24265 #ADD242 #42D2AF
split-complementary
#6742D2 #D2AF42 #65D242
monochromatic
#361E7C #4B29AD #6742D2 #8F73DE #B7A5EA

Accessibility & contrast

On white

6.39
#6742D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#6742D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742D2
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742D2#FFFFFF#000000##FFFFFF
##6742D21.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D6
Deuteranopia (green-blind)
#005BCF
Tritanopia (blue-blind)
#406785
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6742d2;
/* rgb */ color: rgb(103, 66, 210);
/* oklch */ color: oklch(50.7% 0.208 288.5);
Tailwind
colors: {
  custom: {
    50: '#9c79e1',
    500: '#6742d2',
    950: '#000000',
  },
}
SCSS
$custom: #6742d2;
$custom-light: #9c79e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6742d2",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 255.417,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50739,
    "c": 0.20836,
    "h": 288.5
  },
  "luminance": 0.11433
}

Semantic roles & 50–950 ramp

primary
#6742D2
secondary
#C7D799
accent
#E543BB
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6742D2

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

Preview Lab → · Contrast checker → · Palette generator →

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