#6742CB#6742CB

#6742CB is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.2% C 0.200 H 289.6°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#6742CB
RGBrgb(103, 66, 203)
HSLhsl(256, 57%, 53%)
HSVhsv(256, 67%, 80%)
CMYKcmyk(49.3%, 67.5%, 0%, 20.4%)
CIE-LABlab(39.73, 48.58, -65.72)
CIE-LCHlch(39.73, 81.73, 306.47°)
OKLaboklab(50.16% 0.0671 -0.1885)
OKLCHoklch(50.16% 0.2 289.6)
XYZxyz(18.3181, 11.0910, 57.6639)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6742CB #A6CB42
analogous
#4262CB #6742CB #AB42CB
triadic
#6742CB #CB6742 #42CB67
tetradic
#6742CB #CB4262 #A6CB42 #42CBAB
square
#6742CB #CB4262 #A6CB42 #42CBAB
split-complementary
#6742CB #CBAB42 #62CB42
monochromatic
#362073 #4D2DA3 #6742CB #8E72D8 #B4A2E5

Accessibility & contrast

On white

6.52
#6742CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#6742CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6742CB
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6742CB#FFFFFF#000000##FFFFFF
##6742CB1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#005AC8
Tritanopia (blue-blind)
#456481
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6742cb;
/* rgb */ color: rgb(103, 66, 203);
/* oklch */ color: oklch(50.2% 0.200 289.6);
Tailwind
colors: {
  custom: {
    50: '#9b79dc',
    500: '#6742cb',
    950: '#000000',
  },
}
SCSS
$custom: #6742cb;
$custom-light: #9b79dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6742cb",
  "rgb": {
    "r": 103,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 256.204,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50158,
    "c": 0.20005,
    "h": 289.6
  },
  "luminance": 0.11092
}

Semantic roles & 50–950 ramp

primary
#6742CB
secondary
#C2D297
accent
#E048B7
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6742CB

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

Preview Lab → · Contrast checker → · Palette generator →

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