#6F42BE#6F42BE

#6F42BE is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.9% C 0.185 H 295.6°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#6F42BE
RGBrgb(111, 66, 190)
HSLhsl(262, 49%, 50%)
HSVhsv(262, 65%, 75%)
CMYKcmyk(41.6%, 65.3%, 0%, 25.5%)
CIE-LABlab(39.57, 46.52, -58.38)
CIE-LCHlch(39.57, 74.65, 308.55°)
OKLaboklab(49.92% 0.0799 -0.1666)
OKLCHoklch(49.92% 0.185 295.6)
XYZxyz(17.7956, 10.9933, 49.8895)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F42BE #91BE42
analogous
#4253BE #6F42BE #AD42BE
triadic
#6F42BE #BE6F42 #42BE6F
tetradic
#6F42BE #BE4253 #91BE42 #42BEAD
square
#6F42BE #BE4253 #91BE42 #42BEAD
split-complementary
#6F42BE #BEAD42 #53BE42
monochromatic
#3A2263 #543291 #6F42BE #9270CE #B49DDD

Accessibility & contrast

On white

6.56
#6F42BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#6F42BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F42BE
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F42BE#FFFFFF#000000##FFFFFF
##6F42BE1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC2
Deuteranopia (green-blind)
#005BBB
Tritanopia (blue-blind)
#5A5F7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6f42be;
/* rgb */ color: rgb(111, 66, 190);
/* oklch */ color: oklch(49.9% 0.185 295.6);
Tailwind
colors: {
  custom: {
    50: '#9e79d2',
    500: '#6f42be',
    950: '#000000',
  },
}
SCSS
$custom: #6f42be;
$custom-light: #9e79d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6f42be",
  "rgb": {
    "r": 111,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 261.774,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49922,
    "c": 0.18479,
    "h": 295.6
  },
  "luminance": 0.10994
}

Semantic roles & 50–950 ramp

primary
#6F42BE
secondary
#B5CA92
accent
#D84FA7
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6F42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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