#6D42DC#6D42DC

#6D42DC is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.1% C 0.220 H 289.3°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#6D42DC
RGBrgb(109, 66, 220)
HSLhsl(257, 69%, 56%)
HSVhsv(257, 70%, 86%)
CMYKcmyk(50.5%, 70%, 0%, 13.7%)
CIE-LABlab(41.71, 54.33, -72.25)
CIE-LCHlch(41.71, 90.40, 306.94°)
OKLaboklab(52.14% 0.0725 -0.2074)
OKLCHoklch(52.14% 0.22 289.3)
XYZxyz(21.1694, 12.3140, 68.9577)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42DC #B1DC42
analogous
#4264DC #6D42DC #BA42DC
triadic
#6D42DC #DC6D42 #42DC6D
tetradic
#6D42DC #DC4264 #B1DC42 #42DCBA
square
#6D42DC #DC4264 #B1DC42 #42DCBA
split-complementary
#6D42DC #DCBA42 #64DC42
monochromatic
#391A8A #4E23BE #6D42DC #9576E6 #BDA9EF

Accessibility & contrast

On white

6.06
#6D42DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#6D42DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D42DC
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42DC#FFFFFF#000000##FFFFFF
##6D42DC1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E1
Deuteranopia (green-blind)
#005FD9
Tritanopia (blue-blind)
#456A8A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6d42dc;
/* rgb */ color: rgb(109, 66, 220);
/* oklch */ color: oklch(52.1% 0.220 289.3);
Tailwind
colors: {
  custom: {
    50: '#a17ae8',
    500: '#6d42dc',
    950: '#000000',
  },
}
SCSS
$custom: #6d42dc;
$custom-light: #a17ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42dc",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 256.753,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5214,
    "c": 0.21977,
    "h": 289.3
  },
  "luminance": 0.12315
}

Semantic roles & 50–950 ramp

primary
#6D42DC
secondary
#CBDD9D
accent
#EC3CBB
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6D42DC

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

Preview Lab → · Contrast checker → · Palette generator →

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