#6942D7#6942D7

#6942D7 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.3% C 0.214 H 288.5°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#6942D7
RGBrgb(105, 66, 215)
HSLhsl(256, 65%, 55%)
HSVhsv(256, 69%, 84%)
CMYKcmyk(51.2%, 69.3%, 0%, 15.7%)
CIE-LABlab(40.90, 52.30, -70.72)
CIE-LCHlch(40.90, 87.96, 306.48°)
OKLaboklab(51.35% 0.0679 -0.2031)
OKLCHoklch(51.35% 0.214 288.5)
XYZxyz(20.0361, 11.8051, 65.4997)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6942D7 #B0D742
analogous
#4265D7 #6942D7 #B442D7
triadic
#6942D7 #D76942 #42D769
tetradic
#6942D7 #D74265 #B0D742 #42D7B4
square
#6942D7 #D74265 #B0D742 #42D7B4
split-complementary
#6942D7 #D7B442 #65D742
monochromatic
#371C83 #4C26B5 #6942D7 #9175E2 #B9A7EC

Accessibility & contrast

On white

6.25
#6942D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6942D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6942D7
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6942D7#FFFFFF#000000##FFFFFF
##6942D71.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DB
Deuteranopia (green-blind)
#005DD4
Tritanopia (blue-blind)
#406988
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6942d7;
/* rgb */ color: rgb(105, 66, 215);
/* oklch */ color: oklch(51.3% 0.214 288.5);
Tailwind
colors: {
  custom: {
    50: '#9e79e4',
    500: '#6942d7',
    950: '#000000',
  },
}
SCSS
$custom: #6942d7;
$custom-light: #9e79e4;
$custom-dark: #000000;
JSON
{
  "hex": "#6942d7",
  "rgb": {
    "r": 105,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 255.705,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51345,
    "c": 0.21413,
    "h": 288.5
  },
  "luminance": 0.11806
}

Semantic roles & 50–950 ramp

primary
#6942D7
secondary
#C9DA9B
accent
#E840BC
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6942D7

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

Preview Lab → · Contrast checker → · Palette generator →

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