#6F42CD#6F42CD

#6F42CD is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.1% C 0.202 H 292.6°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#6F42CD
RGBrgb(111, 66, 205)
HSLhsl(259, 58%, 53%)
HSVhsv(259, 68%, 80%)
CMYKcmyk(45.9%, 67.8%, 0%, 19.6%)
CIE-LABlab(40.71, 50.57, -65.25)
CIE-LCHlch(40.71, 82.55, 307.77°)
OKLaboklab(51.1% 0.0779 -0.1868)
OKLCHoklch(51.1% 0.202 292.6)
XYZxyz(19.5202, 11.6831, 58.9723)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F42CD #A0CD42
analogous
#425BCD #6F42CD #B442CD
triadic
#6F42CD #CD6F42 #42CD6F
tetradic
#6F42CD #CD425B #A0CD42 #42CDB4
square
#6F42CD #CD425B #A0CD42 #42CDB4
split-complementary
#6F42CD #CDB442 #5BCD42
monochromatic
#3B1F76 #532CA6 #6F42CD #9472DA #B9A3E7

Accessibility & contrast

On white

6.29
#6F42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6F42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F42CD
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F42CD#FFFFFF#000000##FFFFFF
##6F42CD1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D1
Deuteranopia (green-blind)
#005DCA
Tritanopia (blue-blind)
#536482
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6f42cd;
/* rgb */ color: rgb(111, 66, 205);
/* oklch */ color: oklch(51.1% 0.202 292.6);
Tailwind
colors: {
  custom: {
    50: '#a079dd',
    500: '#6f42cd',
    950: '#000000',
  },
}
SCSS
$custom: #6f42cd;
$custom-light: #a079dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6f42cd",
  "rgb": {
    "r": 111,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 259.424,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.51097,
    "c": 0.20243,
    "h": 292.6
  },
  "luminance": 0.11684
}

Semantic roles & 50–950 ramp

primary
#6F42CD
secondary
#C0D397
accent
#E146AF
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #6F42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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