#6D42DF#6D42DF

#6D42DF is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.4% C 0.223 H 288.8°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#6D42DF
RGBrgb(109, 66, 223)
HSLhsl(256, 71%, 57%)
HSVhsv(256, 70%, 87%)
CMYKcmyk(51.1%, 70.4%, 0%, 12.5%)
CIE-LABlab(41.96, 55.15, -73.56)
CIE-LCHlch(41.96, 91.94, 306.86°)
OKLaboklab(52.39% 0.072 -0.2113)
OKLCHoklch(52.39% 0.223 288.8)
XYZxyz(21.5703, 12.4744, 71.0690)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42DF #B4DF42
analogous
#4266DF #6D42DF #BC42DF
triadic
#6D42DF #DF6D42 #42DF6D
tetradic
#6D42DF #DF4266 #B4DF42 #42DFBC
square
#6D42DF #DF4266 #B4DF42 #42DFBC
split-complementary
#6D42DF #DFBC42 #66DF42
monochromatic
#39188E #4D21C3 #6D42DF #9576E8 #BEABF1

Accessibility & contrast

On white

6.01
#6D42DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#6D42DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D42DF
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42DF#FFFFFF#000000##FFFFFF
##6D42DF1.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E4
Deuteranopia (green-blind)
#005FDC
Tritanopia (blue-blind)
#436B8C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6d42df;
/* rgb */ color: rgb(109, 66, 223);
/* oklch */ color: oklch(52.4% 0.223 288.8);
Tailwind
colors: {
  custom: {
    50: '#a17aea',
    500: '#6d42df',
    950: '#000000',
  },
}
SCSS
$custom: #6d42df;
$custom-light: #a17aea;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42df",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 256.433,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52394,
    "c": 0.2232,
    "h": 288.8
  },
  "luminance": 0.12475
}

Semantic roles & 50–950 ramp

primary
#6D42DF
secondary
#CDDF9E
accent
#EE3ABD
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6D42DF

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

Preview Lab → · Contrast checker → · Palette generator →

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