#6F42DD#6F42DD

#6F42DD is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.4% C 0.221 H 289.9°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#6F42DD
RGBrgb(111, 66, 221)
HSLhsl(257, 70%, 56%)
HSVhsv(257, 70%, 87%)
CMYKcmyk(49.8%, 70.1%, 0%, 13.3%)
CIE-LABlab(41.99, 54.92, -72.35)
CIE-LCHlch(41.99, 90.84, 307.20°)
OKLaboklab(52.41% 0.0751 -0.2077)
OKLCHoklch(52.41% 0.221 289.9)
XYZxyz(21.5512, 12.4955, 69.6689)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F42DD #B0DD42
analogous
#4263DD #6F42DD #BD42DD
triadic
#6F42DD #DD6F42 #42DD6F
tetradic
#6F42DD #DD4263 #B0DD42 #42DDBD
square
#6F42DD #DD4263 #B0DD42 #42DDBD
split-complementary
#6F42DD #DDBD42 #63DD42
monochromatic
#3A198C #5022BF #6F42DD #9776E6 #BEAAF0

Accessibility & contrast

On white

6.00
#6F42DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#6F42DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F42DD
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F42DD#FFFFFF#000000##FFFFFF
##6F42DD1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E2
Deuteranopia (green-blind)
#005FDA
Tritanopia (blue-blind)
#496A8B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6f42dd;
/* rgb */ color: rgb(111, 66, 221);
/* oklch */ color: oklch(52.4% 0.221 289.9);
Tailwind
colors: {
  custom: {
    50: '#a27ae9',
    500: '#6f42dd',
    950: '#000000',
  },
}
SCSS
$custom: #6f42dd;
$custom-light: #a27ae9;
$custom-dark: #000000;
JSON
{
  "hex": "#6f42dd",
  "rgb": {
    "r": 111,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 257.419,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.52413,
    "c": 0.22086,
    "h": 289.9
  },
  "luminance": 0.12496
}

Semantic roles & 50–950 ramp

primary
#6F42DD
secondary
#CBDD9D
accent
#EC3BB9
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6F42DD

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

Preview Lab → · Contrast checker → · Palette generator →

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