#6F42CE#6F42CE

#6F42CE is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.204 H 292.5°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#6F42CE
RGBrgb(111, 66, 206)
HSLhsl(259, 59%, 53%)
HSVhsv(259, 68%, 81%)
CMYKcmyk(46.1%, 68%, 0%, 19.2%)
CIE-LABlab(40.79, 50.84, -65.71)
CIE-LCHlch(40.79, 83.08, 307.73°)
OKLaboklab(51.18% 0.0778 -0.1882)
OKLCHoklch(51.18% 0.204 292.5)
XYZxyz(19.6412, 11.7315, 59.6101)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F42CE #A1CE42
analogous
#425BCE #6F42CE #B542CE
triadic
#6F42CE #CE6F42 #42CE6F
tetradic
#6F42CE #CE425B #A1CE42 #42CEB5
square
#6F42CE #CE425B #A1CE42 #42CEB5
split-complementary
#6F42CE #CEB542 #5BCE42
monochromatic
#3B1F77 #532BA7 #6F42CE #9473DB #B9A3E7

Accessibility & contrast

On white

6.28
#6F42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#6F42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F42CE
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F42CE#FFFFFF#000000##FFFFFF
##6F42CE1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6f42ce;
/* rgb */ color: rgb(111, 66, 206);
/* oklch */ color: oklch(51.2% 0.204 292.5);
Tailwind
colors: {
  custom: {
    50: '#a07ade',
    500: '#6f42ce',
    950: '#000000',
  },
}
SCSS
$custom: #6f42ce;
$custom-light: #a07ade;
$custom-dark: #000000;
JSON
{
  "hex": "#6f42ce",
  "rgb": {
    "r": 111,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 259.286,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.51178,
    "c": 0.20359,
    "h": 292.5
  },
  "luminance": 0.11732
}

Semantic roles & 50–950 ramp

primary
#6F42CE
secondary
#C1D498
accent
#E246B0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #6F42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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