#6F42D7#6F42D7

#6F42D7 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 51.9% C 0.214 H 290.9°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#6F42D7
RGBrgb(111, 66, 215)
HSLhsl(258, 65%, 55%)
HSVhsv(258, 69%, 84%)
CMYKcmyk(48.4%, 69.3%, 0%, 15.7%)
CIE-LABlab(41.50, 53.29, -69.72)
CIE-LCHlch(41.50, 87.75, 307.39°)
OKLaboklab(51.91% 0.0763 -0.1999)
OKLCHoklch(51.91% 0.214 290.9)
XYZxyz(20.7660, 12.1814, 65.5339)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F42D7 #AAD742
analogous
#425FD7 #6F42D7 #BA42D7
triadic
#6F42D7 #D76F42 #42D76F
tetradic
#6F42D7 #D7425F #AAD742 #42D7BA
square
#6F42D7 #D7425F #AAD742 #42D7BA
split-complementary
#6F42D7 #D7BA42 #5FD742
monochromatic
#3B1C83 #5226B5 #6F42D7 #9575E2 #BCA7EC

Accessibility & contrast

On white

6.11
#6F42D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#6F42D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F42D7
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F42D7#FFFFFF#000000##FFFFFF
##6F42D71.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DB
Deuteranopia (green-blind)
#005FD4
Tritanopia (blue-blind)
#4D6888
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6f42d7;
/* rgb */ color: rgb(111, 66, 215);
/* oklch */ color: oklch(51.9% 0.214 290.9);
Tailwind
colors: {
  custom: {
    50: '#a17ae4',
    500: '#6f42d7',
    950: '#000000',
  },
}
SCSS
$custom: #6f42d7;
$custom-light: #a17ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#6f42d7",
  "rgb": {
    "r": 111,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 258.121,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51913,
    "c": 0.214,
    "h": 290.9
  },
  "luminance": 0.12182
}

Semantic roles & 50–950 ramp

primary
#6F42D7
secondary
#C7DA9B
accent
#E840B5
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6F42D7

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

Preview Lab → · Contrast checker → · Palette generator →

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