#6D42CD#6D42CD

#6D42CD is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 50.9% C 0.202 H 291.8°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#6D42CD
RGBrgb(109, 66, 205)
HSLhsl(259, 58%, 53%)
HSVhsv(259, 68%, 80%)
CMYKcmyk(46.8%, 67.8%, 0%, 19.6%)
CIE-LABlab(40.50, 50.21, -65.60)
CIE-LCHlch(40.50, 82.61, 307.43°)
OKLaboklab(50.9% 0.0751 -0.1879)
OKLCHoklch(50.9% 0.202 291.8)
XYZxyz(19.2713, 11.5547, 58.9607)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42CD #A2CD42
analogous
#425CCD #6D42CD #B242CD
triadic
#6D42CD #CD6D42 #42CD6D
tetradic
#6D42CD #CD425C #A2CD42 #42CDB2
square
#6D42CD #CD425C #A2CD42 #42CDB2
split-complementary
#6D42CD #CDB242 #5CCD42
monochromatic
#3A1F76 #522CA6 #6D42CD #9272DA #B8A3E7

Accessibility & contrast

On white

6.34
#6D42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#6D42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D42CD
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42CD#FFFFFF#000000##FFFFFF
##6D42CD1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D1
Deuteranopia (green-blind)
#005DCA
Tritanopia (blue-blind)
#4F6582
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6d42cd;
/* rgb */ color: rgb(109, 66, 205);
/* oklch */ color: oklch(50.9% 0.202 291.8);
Tailwind
colors: {
  custom: {
    50: '#9f79dd',
    500: '#6d42cd',
    950: '#000000',
  },
}
SCSS
$custom: #6d42cd;
$custom-light: #9f79dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42cd",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 258.561,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50899,
    "c": 0.20239,
    "h": 291.8
  },
  "luminance": 0.11555
}

Semantic roles & 50–950 ramp

primary
#6D42CD
secondary
#C1D397
accent
#E146B1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6D42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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