#6942DB#6942DB

#6942DB is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.7% C 0.219 H 287.9°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#6942DB
RGBrgb(105, 66, 219)
HSLhsl(255, 68%, 56%)
HSVhsv(255, 70%, 86%)
CMYKcmyk(52.1%, 69.9%, 0%, 14.1%)
CIE-LABlab(41.24, 53.42, -72.47)
CIE-LCHlch(41.24, 90.03, 306.39°)
OKLaboklab(51.68% 0.0672 -0.2082)
OKLCHoklch(51.68% 0.219 287.9)
XYZxyz(20.5563, 12.0132, 68.2397)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6942DB #B4DB42
analogous
#4267DB #6942DB #B542DB
triadic
#6942DB #DB6942 #42DB69
tetradic
#6942DB #DB4267 #B4DB42 #42DBB5
square
#6942DB #DB4267 #B4DB42 #42DBB5
split-complementary
#6942DB #DBB542 #67DB42
monochromatic
#361A89 #4B24BC #6942DB #9275E5 #BBA9EF

Accessibility & contrast

On white

6.17
#6942DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#6942DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6942DB
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6942DB#FFFFFF#000000##FFFFFF
##6942DB1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E0
Deuteranopia (green-blind)
#005DD8
Tritanopia (blue-blind)
#3D6A8A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6942db;
/* rgb */ color: rgb(105, 66, 219);
/* oklch */ color: oklch(51.7% 0.219 287.9);
Tailwind
colors: {
  custom: {
    50: '#9e7ae7',
    500: '#6942db',
    950: '#000000',
  },
}
SCSS
$custom: #6942db;
$custom-light: #9e7ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#6942db",
  "rgb": {
    "r": 105,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 255.294,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51684,
    "c": 0.21878,
    "h": 287.9
  },
  "luminance": 0.12014
}

Semantic roles & 50–950 ramp

primary
#6942DB
secondary
#CCDC9D
accent
#EB3DBF
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6942DB

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

Preview Lab → · Contrast checker → · Palette generator →

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