#6942C8#6942C8

#6942C8 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.1% C 0.196 H 291.0°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#6942C8
RGBrgb(105, 66, 200)
HSLhsl(257, 55%, 52%)
HSVhsv(257, 67%, 78%)
CMYKcmyk(47.5%, 67%, 0%, 21.6%)
CIE-LABlab(39.70, 48.10, -64.03)
CIE-LCHlch(39.70, 80.08, 306.91°)
OKLaboklab(50.11% 0.0703 -0.1834)
OKLCHoklch(50.11% 0.196 291)
XYZxyz(18.1963, 11.0691, 55.8102)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6942C8 #A1C842
analogous
#425EC8 #6942C8 #AC42C8
triadic
#6942C8 #C86942 #42C869
tetradic
#6942C8 #C8425E #A1C842 #42C8AC
square
#6942C8 #C8425E #A1C842 #42C8AC
split-complementary
#6942C8 #C8AC42 #5EC842
monochromatic
#37206F #4F2E9F #6942C8 #8F71D6 #B4A1E4

Accessibility & contrast

On white

6.53
#6942C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#6942C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6942C8
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6942C8#FFFFFF#000000##FFFFFF
##6942C81.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#4B637F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6942c8;
/* rgb */ color: rgb(105, 66, 200);
/* oklch */ color: oklch(50.1% 0.196 291.0);
Tailwind
colors: {
  custom: {
    50: '#9c79da',
    500: '#6942c8',
    950: '#000000',
  },
}
SCSS
$custom: #6942c8;
$custom-light: #9c79da;
$custom-dark: #000000;
JSON
{
  "hex": "#6942c8",
  "rgb": {
    "r": 105,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 257.463,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50105,
    "c": 0.19645,
    "h": 291
  },
  "luminance": 0.1107
}

Semantic roles & 50–950 ramp

primary
#6942C8
secondary
#BFD096
accent
#DE4AB3
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6942C8

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

Preview Lab → · Contrast checker → · Palette generator →

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