#6F42CC#6F42CC

#6F42CC is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.0% C 0.201 H 292.8°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#6F42CC
RGBrgb(111, 66, 204)
HSLhsl(260, 58%, 53%)
HSVhsv(260, 68%, 80%)
CMYKcmyk(45.6%, 67.6%, 0%, 20%)
CIE-LABlab(40.63, 50.30, -64.80)
CIE-LCHlch(40.63, 82.03, 307.82°)
OKLaboklab(51.02% 0.0781 -0.1855)
OKLCHoklch(51.02% 0.201 292.8)
XYZxyz(19.3998, 11.6350, 58.3387)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F42CC #9FCC42
analogous
#425ACC #6F42CC #B442CC
triadic
#6F42CC #CC6F42 #42CC6F
tetradic
#6F42CC #CC425A #9FCC42 #42CCB4
square
#6F42CC #CC425A #9FCC42 #42CCB4
split-complementary
#6F42CC #CCB442 #5ACC42
monochromatic
#3B1F74 #542CA4 #6F42CC #9472D9 #B8A2E6

Accessibility & contrast

On white

6.31
#6F42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#6F42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F42CC
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F42CC#FFFFFF#000000##FFFFFF
##6F42CC1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6f42cc;
/* rgb */ color: rgb(111, 66, 204);
/* oklch */ color: oklch(51.0% 0.201 292.8);
Tailwind
colors: {
  custom: {
    50: '#a079dd',
    500: '#6f42cc',
    950: '#000000',
  },
}
SCSS
$custom: #6f42cc;
$custom-light: #a079dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6f42cc",
  "rgb": {
    "r": 111,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 259.565,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.51017,
    "c": 0.20127,
    "h": 292.8
  },
  "luminance": 0.11636
}

Semantic roles & 50–950 ramp

primary
#6F42CC
secondary
#BFD397
accent
#E147AF
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6F42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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