#6F42D3#6F42D3

#6F42D3 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.6% C 0.209 H 291.6°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#6F42D3
RGBrgb(111, 66, 211)
HSLhsl(259, 62%, 54%)
HSVhsv(259, 69%, 83%)
CMYKcmyk(47.4%, 68.7%, 0%, 17.3%)
CIE-LABlab(41.18, 52.20, -67.94)
CIE-LCHlch(41.18, 85.68, 307.53°)
OKLaboklab(51.58% 0.077 -0.1947)
OKLCHoklch(51.58% 0.209 291.6)
XYZxyz(20.2583, 11.9784, 62.8600)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F42D3 #A6D342
analogous
#425ED3 #6F42D3 #B842D3
triadic
#6F42D3 #D36F42 #42D36F
tetradic
#6F42D3 #D3425E #A6D342 #42D3B8
square
#6F42D3 #D3425E #A6D342 #42D3B8
split-complementary
#6F42D3 #D3B842 #5ED342
monochromatic
#3B1D7D #5229AF #6F42D3 #9574DF #BBA5EA

Accessibility & contrast

On white

6.18
#6F42D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#6F42D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F42D3
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F42D3#FFFFFF#000000##FFFFFF
##6F42D31.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D7
Deuteranopia (green-blind)
#005ED0
Tritanopia (blue-blind)
#4F6785
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6f42d3;
/* rgb */ color: rgb(111, 66, 211);
/* oklch */ color: oklch(51.6% 0.209 291.6);
Tailwind
colors: {
  custom: {
    50: '#a17ae2',
    500: '#6f42d3',
    950: '#000000',
  },
}
SCSS
$custom: #6f42d3;
$custom-light: #a17ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#6f42d3",
  "rgb": {
    "r": 111,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 258.621,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.51584,
    "c": 0.20939,
    "h": 291.6
  },
  "luminance": 0.11979
}

Semantic roles & 50–950 ramp

primary
#6F42D3
secondary
#C4D79A
accent
#E542B3
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100915
muted
#7F7B84

Preview Lab

Preview with #6F42D3

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

Preview Lab → · Contrast checker → · Palette generator →

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