#6942D9#6942D9

#6942D9 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.5% C 0.216 H 288.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#6942D9
RGBrgb(105, 66, 217)
HSLhsl(255, 67%, 55%)
HSVhsv(255, 70%, 85%)
CMYKcmyk(51.6%, 69.6%, 0%, 14.9%)
CIE-LABlab(41.07, 52.86, -71.60)
CIE-LCHlch(41.07, 88.99, 306.44°)
OKLaboklab(51.51% 0.0675 -0.2057)
OKLCHoklch(51.51% 0.216 288.2)
XYZxyz(20.2946, 11.9085, 66.8614)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6942D9 #B2D942
analogous
#4266D9 #6942D9 #B542D9
triadic
#6942D9 #D96942 #42D969
tetradic
#6942D9 #D94266 #B2D942 #42D9B5
square
#6942D9 #D94266 #B2D942 #42D9B5
split-complementary
#6942D9 #D9B542 #66D942
monochromatic
#361B86 #4B25B9 #6942D9 #9175E3 #BAA8ED

Accessibility & contrast

On white

6.21
#6942D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#6942D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6942D9
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6942D9#FFFFFF#000000##FFFFFF
##6942D91.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DE
Deuteranopia (green-blind)
#005DD6
Tritanopia (blue-blind)
#3F6989
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6942d9;
/* rgb */ color: rgb(105, 66, 217);
/* oklch */ color: oklch(51.5% 0.216 288.2);
Tailwind
colors: {
  custom: {
    50: '#9e79e6',
    500: '#6942d9',
    950: '#000000',
  },
}
SCSS
$custom: #6942d9;
$custom-light: #9e79e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6942d9",
  "rgb": {
    "r": 105,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 255.497,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51514,
    "c": 0.21646,
    "h": 288.2
  },
  "luminance": 0.11909
}

Semantic roles & 50–950 ramp

primary
#6942D9
secondary
#CBDB9C
accent
#E93EBD
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6942D9

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

Preview Lab → · Contrast checker → · Palette generator →

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