#6F42BC#6F42BC

#6F42BC is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.8% C 0.182 H 296.1°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#6F42BC
RGBrgb(111, 66, 188)
HSLhsl(262, 48%, 50%)
HSVhsv(262, 65%, 74%)
CMYKcmyk(41%, 64.9%, 0%, 26.3%)
CIE-LABlab(39.42, 45.98, -57.44)
CIE-LCHlch(39.42, 73.58, 308.68°)
OKLaboklab(49.77% 0.0801 -0.1639)
OKLCHoklch(49.77% 0.182 296.1)
XYZxyz(17.5785, 10.9064, 48.7462)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F42BC #8FBC42
analogous
#4252BC #6F42BC #AC42BC
triadic
#6F42BC #BC6F42 #42BC6F
tetradic
#6F42BC #BC4252 #8FBC42 #42BCAC
square
#6F42BC #BC4252 #8FBC42 #42BCAC
split-complementary
#6F42BC #BCAC42 #52BC42
monochromatic
#3A2261 #54328F #6F42BC #916FCC #B49CDC

Accessibility & contrast

On white

6.60
#6F42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#6F42BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F42BC
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F42BC#FFFFFF#000000##FFFFFF
##6F42BC1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#005BB9
Tritanopia (blue-blind)
#5B5E79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6f42bc;
/* rgb */ color: rgb(111, 66, 188);
/* oklch */ color: oklch(49.8% 0.182 296.1);
Tailwind
colors: {
  custom: {
    50: '#9e79d1',
    500: '#6f42bc',
    950: '#000000',
  },
}
SCSS
$custom: #6f42bc;
$custom-light: #9e79d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6f42bc",
  "rgb": {
    "r": 111,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 262.131,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.4977,
    "c": 0.18241,
    "h": 296.1
  },
  "luminance": 0.10907
}

Semantic roles & 50–950 ramp

primary
#6F42BC
secondary
#B4C991
accent
#D850A6
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #6F42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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