#6D42D3#6D42D3

#6D42D3 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.4% C 0.209 H 290.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#6D42D3
RGBrgb(109, 66, 211)
HSLhsl(258, 62%, 54%)
HSVhsv(258, 69%, 83%)
CMYKcmyk(48.3%, 68.7%, 0%, 17.3%)
CIE-LABlab(40.98, 51.85, -68.29)
CIE-LCHlch(40.98, 85.74, 307.21°)
OKLaboklab(51.39% 0.0742 -0.1958)
OKLCHoklch(51.39% 0.209 290.7)
XYZxyz(20.0094, 11.8500, 62.8484)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42D3 #A8D342
analogous
#4260D3 #6D42D3 #B642D3
triadic
#6D42D3 #D36D42 #42D36D
tetradic
#6D42D3 #D34260 #A8D342 #42D3B6
square
#6D42D3 #D34260 #A8D342 #42D3B6
split-complementary
#6D42D3 #D3B642 #60D342
monochromatic
#3A1D7D #5129AF #6D42D3 #9374DF #BAA5EA

Accessibility & contrast

On white

6.23
#6D42D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#6D42D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D42D3
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42D3#FFFFFF#000000##FFFFFF
##6D42D31.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D7
Deuteranopia (green-blind)
#005DD0
Tritanopia (blue-blind)
#4C6785
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6d42d3;
/* rgb */ color: rgb(109, 66, 211);
/* oklch */ color: oklch(51.4% 0.209 290.7);
Tailwind
colors: {
  custom: {
    50: '#9f7ae2',
    500: '#6d42d3',
    950: '#000000',
  },
}
SCSS
$custom: #6d42d3;
$custom-light: #9f7ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42d3",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 257.793,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.51389,
    "c": 0.20938,
    "h": 290.7
  },
  "luminance": 0.11851
}

Semantic roles & 50–950 ramp

primary
#6D42D3
secondary
#C5D79A
accent
#E542B5
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100915
muted
#7F7B84

Preview Lab

Preview with #6D42D3

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

Preview Lab → · Contrast checker → · Palette generator →

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