#6F42CF#6F42CF

#6F42CF is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.3% C 0.205 H 292.3°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#6F42CF
RGBrgb(111, 66, 207)
HSLhsl(259, 59%, 54%)
HSVhsv(259, 68%, 81%)
CMYKcmyk(46.4%, 68.1%, 0%, 18.8%)
CIE-LABlab(40.86, 51.11, -66.15)
CIE-LCHlch(40.86, 83.60, 307.69°)
OKLaboklab(51.26% 0.0776 -0.1895)
OKLCHoklch(51.26% 0.205 292.3)
XYZxyz(19.7631, 11.7803, 60.2519)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F42CF #A2CF42
analogous
#425BCF #6F42CF #B542CF
triadic
#6F42CF #CF6F42 #42CF6F
tetradic
#6F42CF #CF425B #A2CF42 #42CFB5
square
#6F42CF #CF425B #A2CF42 #42CFB5
split-complementary
#6F42CF #CFB542 #5BCF42
monochromatic
#3B1F78 #532BA9 #6F42CF #9473DB #B9A4E8

Accessibility & contrast

On white

6.26
#6F42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6F42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F42CF
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F42CF#FFFFFF#000000##FFFFFF
##6F42CF1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D3
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#526583
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6f42cf;
/* rgb */ color: rgb(111, 66, 207);
/* oklch */ color: oklch(51.3% 0.205 292.3);
Tailwind
colors: {
  custom: {
    50: '#a07adf',
    500: '#6f42cf',
    950: '#000000',
  },
}
SCSS
$custom: #6f42cf;
$custom-light: #a07adf;
$custom-dark: #000000;
JSON
{
  "hex": "#6f42cf",
  "rgb": {
    "r": 111,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 259.149,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.51258,
    "c": 0.20475,
    "h": 292.3
  },
  "luminance": 0.11781
}

Semantic roles & 50–950 ramp

primary
#6F42CF
secondary
#C1D598
accent
#E345B0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #6F42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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