#6F42BB#6F42BB

#6F42BB is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.7% C 0.181 H 296.3°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#6F42BB
RGBrgb(111, 66, 187)
HSLhsl(262, 48%, 50%)
HSVhsv(262, 65%, 73%)
CMYKcmyk(40.6%, 64.7%, 0%, 26.7%)
CIE-LABlab(39.35, 45.72, -56.98)
CIE-LCHlch(39.35, 73.05, 308.74°)
OKLaboklab(49.69% 0.0802 -0.1625)
OKLCHoklch(49.69% 0.181 296.3)
XYZxyz(17.4711, 10.8634, 48.1804)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F42BB #8EBB42
analogous
#4252BB #6F42BB #AC42BB
triadic
#6F42BB #BB6F42 #42BB6F
tetradic
#6F42BB #BB4252 #8EBB42 #42BBAC
square
#6F42BB #BB4252 #8EBB42 #42BBAC
split-complementary
#6F42BB #BBAC42 #52BB42
monochromatic
#392261 #54328E #6F42BB #916ECC #B39CDC

Accessibility & contrast

On white

6.62
#6F42BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#6F42BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F42BB
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F42BB#FFFFFF#000000##FFFFFF
##6F42BB1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#005BB8
Tritanopia (blue-blind)
#5C5E78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6f42bb;
/* rgb */ color: rgb(111, 66, 187);
/* oklch */ color: oklch(49.7% 0.181 296.3);
Tailwind
colors: {
  custom: {
    50: '#9e79d0',
    500: '#6f42bb',
    950: '#000000',
  },
}
SCSS
$custom: #6f42bb;
$custom-light: #9e79d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6f42bb",
  "rgb": {
    "r": 111,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 262.314,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.49694,
    "c": 0.18121,
    "h": 296.3
  },
  "luminance": 0.10864
}

Semantic roles & 50–950 ramp

primary
#6F42BB
secondary
#B3C891
accent
#D750A5
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #6F42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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