#6F42BF#6F42BF

#6F42BF is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.0% C 0.186 H 295.4°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#6F42BF
RGBrgb(111, 66, 191)
HSLhsl(262, 49%, 50%)
HSVhsv(262, 65%, 75%)
CMYKcmyk(41.9%, 65.4%, 0%, 25.1%)
CIE-LABlab(39.64, 46.79, -58.84)
CIE-LCHlch(39.64, 75.18, 308.49°)
OKLaboklab(50% 0.0798 -0.168)
OKLCHoklch(50% 0.186 295.4)
XYZxyz(17.9052, 11.0371, 50.4671)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F42BF #92BF42
analogous
#4253BF #6F42BF #AD42BF
triadic
#6F42BF #BF6F42 #42BF6F
tetradic
#6F42BF #BF4253 #92BF42 #42BFAD
square
#6F42BF #BF4253 #92BF42 #42BFAD
split-complementary
#6F42BF #BFAD42 #53BF42
monochromatic
#3A2265 #543292 #6F42BF #9270CE #B59DDE

Accessibility & contrast

On white

6.55
#6F42BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#6F42BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F42BF
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F42BF#FFFFFF#000000##FFFFFF
##6F42BF1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#5A5F7B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6f42bf;
/* rgb */ color: rgb(111, 66, 191);
/* oklch */ color: oklch(50.0% 0.186 295.4);
Tailwind
colors: {
  custom: {
    50: '#9e79d3',
    500: '#6f42bf',
    950: '#000000',
  },
}
SCSS
$custom: #6f42bf;
$custom-light: #9e79d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6f42bf",
  "rgb": {
    "r": 111,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 261.6,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.49998,
    "c": 0.18598,
    "h": 295.4
  },
  "luminance": 0.11038
}

Semantic roles & 50–950 ramp

primary
#6F42BF
secondary
#B6CA93
accent
#D94FA7
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6F42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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