#6942D5#6942D5

#6942D5 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.212 H 288.8°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#6942D5
RGBrgb(105, 66, 213)
HSLhsl(256, 64%, 55%)
HSVhsv(256, 69%, 84%)
CMYKcmyk(50.7%, 69%, 0%, 16.5%)
CIE-LABlab(40.74, 51.74, -69.84)
CIE-LCHlch(40.74, 86.92, 306.53°)
OKLaboklab(51.18% 0.0682 -0.2005)
OKLCHoklch(51.18% 0.212 288.8)
XYZxyz(19.7807, 11.7029, 64.1545)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6942D5 #AED542
analogous
#4265D5 #6942D5 #B242D5
triadic
#6942D5 #D56942 #42D569
tetradic
#6942D5 #D54265 #AED542 #42D5B2
square
#6942D5 #D54265 #AED542 #42D5B2
split-complementary
#6942D5 #D5B242 #65D542
monochromatic
#371C80 #4C28B2 #6942D5 #9174E0 #B8A6EB

Accessibility & contrast

On white

6.29
#6942D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6942D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6942D5
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6942D5#FFFFFF#000000##FFFFFF
##6942D51.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D9
Deuteranopia (green-blind)
#005CD2
Tritanopia (blue-blind)
#426887
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6942d5;
/* rgb */ color: rgb(105, 66, 213);
/* oklch */ color: oklch(51.2% 0.212 288.8);
Tailwind
colors: {
  custom: {
    50: '#9d79e3',
    500: '#6942d5',
    950: '#000000',
  },
}
SCSS
$custom: #6942d5;
$custom-light: #9d79e3;
$custom-dark: #000000;
JSON
{
  "hex": "#6942d5",
  "rgb": {
    "r": 105,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 255.918,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.51176,
    "c": 0.21179,
    "h": 288.8
  },
  "luminance": 0.11704
}

Semantic roles & 50–950 ramp

primary
#6942D5
secondary
#C8D89A
accent
#E741BB
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6942D5

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

Preview Lab → · Contrast checker → · Palette generator →

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