#6F42D6#6F42D6

#6F42D6 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.8% C 0.213 H 291.0°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#6F42D6
RGBrgb(111, 66, 214)
HSLhsl(258, 64%, 55%)
HSVhsv(258, 69%, 84%)
CMYKcmyk(48.1%, 69.2%, 0%, 16.1%)
CIE-LABlab(41.42, 53.01, -69.28)
CIE-LCHlch(41.42, 87.23, 307.43°)
OKLaboklab(51.83% 0.0764 -0.1986)
OKLCHoklch(51.83% 0.213 291)
XYZxyz(20.6379, 12.1302, 64.8592)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F42D6 #A9D642
analogous
#425FD6 #6F42D6 #B942D6
triadic
#6F42D6 #D66F42 #42D66F
tetradic
#6F42D6 #D6425F #A9D642 #42D6B9
square
#6F42D6 #D6425F #A9D642 #42D6B9
split-complementary
#6F42D6 #D6B942 #5FD642
monochromatic
#3B1C82 #5227B4 #6F42D6 #9574E1 #BCA7EC

Accessibility & contrast

On white

6.13
#6F42D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#6F42D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F42D6
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F42D6#FFFFFF#000000##FFFFFF
##6F42D61.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DA
Deuteranopia (green-blind)
#005ED3
Tritanopia (blue-blind)
#4D6887
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6f42d6;
/* rgb */ color: rgb(111, 66, 214);
/* oklch */ color: oklch(51.8% 0.213 291.0);
Tailwind
colors: {
  custom: {
    50: '#a17ae4',
    500: '#6f42d6',
    950: '#000000',
  },
}
SCSS
$custom: #6f42d6;
$custom-light: #a17ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#6f42d6",
  "rgb": {
    "r": 111,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 258.243,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.5183,
    "c": 0.21285,
    "h": 291
  },
  "luminance": 0.12131
}

Semantic roles & 50–950 ramp

primary
#6F42D6
secondary
#C6D99B
accent
#E740B5
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6F42D6

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

Preview Lab → · Contrast checker → · Palette generator →

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