#6942DF#6942DF

#6942DF is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.0% C 0.223 H 287.3°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#6942DF
RGBrgb(105, 66, 223)
HSLhsl(255, 71%, 57%)
HSVhsv(255, 70%, 87%)
CMYKcmyk(52.9%, 70.4%, 0%, 12.5%)
CIE-LABlab(41.57, 54.54, -74.21)
CIE-LCHlch(41.57, 92.09, 306.31°)
OKLaboklab(52.03% 0.0664 -0.2133)
OKLCHoklch(52.03% 0.223 287.3)
XYZxyz(21.0893, 12.2263, 71.0464)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6942DF #B8DF42
analogous
#426ADF #6942DF #B742DF
triadic
#6942DF #DF6942 #42DF69
tetradic
#6942DF #DF426A #B8DF42 #42DFB7
square
#6942DF #DF426A #B8DF42 #42DFB7
split-complementary
#6942DF #DFB742 #6ADF42
monochromatic
#36188E #4921C3 #6942DF #9376E8 #BCABF1

Accessibility & contrast

On white

6.10
#6942DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#6942DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6942DF
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6942DF#FFFFFF#000000##FFFFFF
##6942DF1.006.103.456.10
#FFFFFF6.101.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E4
Deuteranopia (green-blind)
#005EDC
Tritanopia (blue-blind)
#396C8C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6942df;
/* rgb */ color: rgb(105, 66, 223);
/* oklch */ color: oklch(52.0% 0.223 287.3);
Tailwind
colors: {
  custom: {
    50: '#9f7aea',
    500: '#6942df',
    950: '#000000',
  },
}
SCSS
$custom: #6942df;
$custom-light: #9f7aea;
$custom-dark: #000000;
JSON
{
  "hex": "#6942df",
  "rgb": {
    "r": 105,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 254.904,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52027,
    "c": 0.2234,
    "h": 287.3
  },
  "luminance": 0.12227
}

Semantic roles & 50–950 ramp

primary
#6942DF
secondary
#CFDF9E
accent
#EE3AC1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6942DF

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

Preview Lab → · Contrast checker → · Palette generator →

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