#6F42BA#6F42BA

#6F42BA is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.6% C 0.180 H 296.5°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#6F42BA
RGBrgb(111, 66, 186)
HSLhsl(263, 48%, 49%)
HSVhsv(263, 65%, 73%)
CMYKcmyk(40.3%, 64.5%, 0%, 27.1%)
CIE-LABlab(39.28, 45.45, -56.51)
CIE-LCHlch(39.28, 72.52, 308.81°)
OKLaboklab(49.62% 0.0803 -0.1611)
OKLCHoklch(49.62% 0.18 296.5)
XYZxyz(17.3644, 10.8208, 47.6186)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F42BA #8DBA42
analogous
#4251BA #6F42BA #AB42BA
triadic
#6F42BA #BA6F42 #42BA6F
tetradic
#6F42BA #BA4251 #8DBA42 #42BAAB
square
#6F42BA #BA4251 #8DBA42 #42BAAB
split-complementary
#6F42BA #BAAB42 #51BA42
monochromatic
#392260 #54328D #6F42BA #916ECB #B39BDB

Accessibility & contrast

On white

6.64
#6F42BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#6F42BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F42BA
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F42BA#FFFFFF#000000##FFFFFF
##6F42BA1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#005BB7
Tritanopia (blue-blind)
#5C5E78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6f42ba;
/* rgb */ color: rgb(111, 66, 186);
/* oklch */ color: oklch(49.6% 0.180 296.5);
Tailwind
colors: {
  custom: {
    50: '#9e79d0',
    500: '#6f42ba',
    950: '#000000',
  },
}
SCSS
$custom: #6f42ba;
$custom-light: #9e79d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6f42ba",
  "rgb": {
    "r": 111,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 262.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.49619,
    "c": 0.18002,
    "h": 296.5
  },
  "luminance": 0.10821
}

Semantic roles & 50–950 ramp

primary
#6F42BA
secondary
#B3C890
accent
#D751A5
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #6F42BA

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

Preview Lab → · Contrast checker → · Palette generator →

#6F42BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva