#6742CA#6742CA

#6742CA is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.1% C 0.199 H 289.8°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#6742CA
RGBrgb(103, 66, 202)
HSLhsl(256, 56%, 53%)
HSVhsv(256, 67%, 79%)
CMYKcmyk(49%, 67.3%, 0%, 20.8%)
CIE-LABlab(39.65, 48.30, -65.27)
CIE-LCHlch(39.65, 81.20, 306.50°)
OKLaboklab(50.08% 0.0672 -0.1871)
OKLCHoklch(50.08% 0.199 289.8)
XYZxyz(18.1993, 11.0435, 57.0383)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742CA #A5CA42
analogous
#4261CA #6742CA #AB42CA
triadic
#6742CA #CA6742 #42CA67
tetradic
#6742CA #CA4261 #A5CA42 #42CAAB
square
#6742CA #CA4261 #A5CA42 #42CAAB
split-complementary
#6742CA #CAAB42 #61CA42
monochromatic
#362072 #4D2DA2 #6742CA #8D72D7 #B4A2E5

Accessibility & contrast

On white

6.54
#6742CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#6742CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742CA
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742CA#FFFFFF#000000##FFFFFF
##6742CA1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#466481
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6742ca;
/* rgb */ color: rgb(103, 66, 202);
/* oklch */ color: oklch(50.1% 0.199 289.8);
Tailwind
colors: {
  custom: {
    50: '#9b79db',
    500: '#6742ca',
    950: '#000000',
  },
}
SCSS
$custom: #6742ca;
$custom-light: #9b79db;
$custom-dark: #000000;
JSON
{
  "hex": "#6742ca",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 256.324,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50076,
    "c": 0.19886,
    "h": 289.8
  },
  "luminance": 0.11044
}

Semantic roles & 50–950 ramp

primary
#6742CA
secondary
#C1D196
accent
#DF48B6
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6742CA

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

Preview Lab → · Contrast checker → · Palette generator →

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