#6942D8#6942D8

#6942D8 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.4% C 0.215 H 288.3°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#6942D8
RGBrgb(105, 66, 216)
HSLhsl(256, 66%, 55%)
HSVhsv(256, 69%, 85%)
CMYKcmyk(51.4%, 69.4%, 0%, 15.3%)
CIE-LABlab(40.99, 52.58, -71.16)
CIE-LCHlch(40.99, 88.48, 306.46°)
OKLaboklab(51.43% 0.0677 -0.2044)
OKLCHoklch(51.43% 0.215 288.3)
XYZxyz(20.1650, 11.8566, 66.1785)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6942D8 #B1D842
analogous
#4266D8 #6942D8 #B442D8
triadic
#6942D8 #D86942 #42D869
tetradic
#6942D8 #D84266 #B1D842 #42D8B4
square
#6942D8 #D84266 #B1D842 #42D8B4
split-complementary
#6942D8 #D8B442 #66D842
monochromatic
#371B84 #4C26B7 #6942D8 #9175E2 #BAA7ED

Accessibility & contrast

On white

6.23
#6942D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#6942D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6942D8
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6942D8#FFFFFF#000000##FFFFFF
##6942D81.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DC
Deuteranopia (green-blind)
#005DD5
Tritanopia (blue-blind)
#3F6988
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6942d8;
/* rgb */ color: rgb(105, 66, 216);
/* oklch */ color: oklch(51.4% 0.215 288.3);
Tailwind
colors: {
  custom: {
    50: '#9e79e5',
    500: '#6942d8',
    950: '#000000',
  },
}
SCSS
$custom: #6942d8;
$custom-light: #9e79e5;
$custom-dark: #000000;
JSON
{
  "hex": "#6942d8",
  "rgb": {
    "r": 105,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 255.6,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.51429,
    "c": 0.21529,
    "h": 288.3
  },
  "luminance": 0.11858
}

Semantic roles & 50–950 ramp

primary
#6942D8
secondary
#CADA9C
accent
#E93FBD
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6942D8

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

Preview Lab → · Contrast checker → · Palette generator →

#6942D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva