#6F42DC#6F42DC

#6F42DC is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.3% C 0.220 H 290.1°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#6F42DC
RGBrgb(111, 66, 220)
HSLhsl(258, 69%, 56%)
HSVhsv(258, 70%, 86%)
CMYKcmyk(49.5%, 70%, 0%, 13.7%)
CIE-LABlab(41.91, 54.65, -71.92)
CIE-LCHlch(41.91, 90.32, 307.23°)
OKLaboklab(52.33% 0.0753 -0.2064)
OKLCHoklch(52.33% 0.22 290.1)
XYZxyz(21.4183, 12.4424, 68.9693)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F42DC #AFDC42
analogous
#4262DC #6F42DC #BC42DC
triadic
#6F42DC #DC6F42 #42DC6F
tetradic
#6F42DC #DC4262 #AFDC42 #42DCBC
square
#6F42DC #DC4262 #AFDC42 #42DCBC
split-complementary
#6F42DC #DCBC42 #62DC42
monochromatic
#3A1A8A #5023BE #6F42DC #9676E6 #BEA9EF

Accessibility & contrast

On white

6.02
#6F42DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#6F42DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F42DC
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F42DC#FFFFFF#000000##FFFFFF
##6F42DC1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E1
Deuteranopia (green-blind)
#005FD9
Tritanopia (blue-blind)
#496A8A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6f42dc;
/* rgb */ color: rgb(111, 66, 220);
/* oklch */ color: oklch(52.3% 0.220 290.1);
Tailwind
colors: {
  custom: {
    50: '#a27ae8',
    500: '#6f42dc',
    950: '#000000',
  },
}
SCSS
$custom: #6f42dc;
$custom-light: #a27ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#6f42dc",
  "rgb": {
    "r": 111,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 257.532,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.52329,
    "c": 0.21972,
    "h": 290.1
  },
  "luminance": 0.12443
}

Semantic roles & 50–950 ramp

primary
#6F42DC
secondary
#CADD9D
accent
#EC3CB8
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6F42DC

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

Preview Lab → · Contrast checker → · Palette generator →

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