#6D42D0#6D42D0

#6D42D0 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.1% C 0.206 H 291.3°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#6D42D0
RGBrgb(109, 66, 208)
HSLhsl(258, 60%, 54%)
HSVhsv(258, 68%, 82%)
CMYKcmyk(47.6%, 68.3%, 0%, 18.4%)
CIE-LABlab(40.74, 51.03, -66.95)
CIE-LCHlch(40.74, 84.18, 307.31°)
OKLaboklab(51.14% 0.0746 -0.1919)
OKLCHoklch(51.14% 0.206 291.3)
XYZxyz(19.6368, 11.7010, 60.8861)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42D0 #A5D042
analogous
#425ED0 #6D42D0 #B442D0
triadic
#6D42D0 #D06D42 #42D06D
tetradic
#6D42D0 #D0425E #A5D042 #42D0B4
square
#6D42D0 #D0425E #A5D042 #42D0B4
split-complementary
#6D42D0 #D0B442 #5ED042
monochromatic
#3A1E79 #512AAA #6D42D0 #9373DC #B9A4E8

Accessibility & contrast

On white

6.29
#6D42D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6D42D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D42D0
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42D0#FFFFFF#000000##FFFFFF
##6D42D01.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D4
Deuteranopia (green-blind)
#005DCD
Tritanopia (blue-blind)
#4D6684
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6d42d0;
/* rgb */ color: rgb(109, 66, 208);
/* oklch */ color: oklch(51.1% 0.206 291.3);
Tailwind
colors: {
  custom: {
    50: '#9f79df',
    500: '#6d42d0',
    950: '#000000',
  },
}
SCSS
$custom: #6d42d0;
$custom-light: #9f79df;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42d0",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 208
  },
  "hsl": {
    "h": 258.169,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.51143,
    "c": 0.20589,
    "h": 291.3
  },
  "luminance": 0.11702
}

Semantic roles & 50–950 ramp

primary
#6D42D0
secondary
#C3D599
accent
#E344B3
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6D42D0

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

Preview Lab → · Contrast checker → · Palette generator →

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