#6D42CE#6D42CE

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

Color values

HEX#6D42CE
RGBrgb(109, 66, 206)
HSLhsl(258, 59%, 53%)
HSVhsv(258, 68%, 81%)
CMYKcmyk(47.1%, 68%, 0%, 19.2%)
CIE-LABlab(40.58, 50.48, -66.05)
CIE-LCHlch(40.58, 83.13, 307.39°)
OKLaboklab(50.98% 0.075 -0.1892)
OKLCHoklch(50.98% 0.204 291.6)
XYZxyz(19.3923, 11.6032, 59.5984)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42CE #A3CE42
analogous
#425DCE #6D42CE #B342CE
triadic
#6D42CE #CE6D42 #42CE6D
tetradic
#6D42CE #CE425D #A3CE42 #42CEB3
square
#6D42CE #CE425D #A3CE42 #42CEB3
split-complementary
#6D42CE #CEB342 #5DCE42
monochromatic
#3A1F77 #512BA7 #6D42CE #9373DB #B8A3E7

Accessibility & contrast

On white

6.32
#6D42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#6D42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D42CE
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42CE#FFFFFF#000000##FFFFFF
##6D42CE1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6d42ce;
/* rgb */ color: rgb(109, 66, 206);
/* oklch */ color: oklch(51.0% 0.204 291.6);
Tailwind
colors: {
  custom: {
    50: '#9f79de',
    500: '#6d42ce',
    950: '#000000',
  },
}
SCSS
$custom: #6d42ce;
$custom-light: #9f79de;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42ce",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 258.429,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.5098,
    "c": 0.20356,
    "h": 291.6
  },
  "luminance": 0.11604
}

Semantic roles & 50–950 ramp

primary
#6D42CE
secondary
#C2D498
accent
#E246B2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6D42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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