#6D42BE#6D42BE

#6D42BE is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.7% C 0.185 H 294.7°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#6D42BE
RGBrgb(109, 66, 190)
HSLhsl(261, 49%, 50%)
HSVhsv(261, 65%, 75%)
CMYKcmyk(42.6%, 65.3%, 0%, 25.5%)
CIE-LABlab(39.35, 46.11, -58.74)
CIE-LCHlch(39.35, 74.68, 308.13°)
OKLaboklab(49.72% 0.0771 -0.1677)
OKLCHoklch(49.72% 0.185 294.7)
XYZxyz(17.5467, 10.8649, 49.8779)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42BE #93BE42
analogous
#4255BE #6D42BE #AB42BE
triadic
#6D42BE #BE6D42 #42BE6D
tetradic
#6D42BE #BE4255 #93BE42 #42BEAB
square
#6D42BE #BE4255 #93BE42 #42BEAB
split-complementary
#6D42BE #BEAB42 #55BE42
monochromatic
#392263 #533291 #6D42BE #9070CE #B39DDD

Accessibility & contrast

On white

6.62
#6D42BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#6D42BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D42BE
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42BE#FFFFFF#000000##FFFFFF
##6D42BE1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC2
Deuteranopia (green-blind)
#005BBB
Tritanopia (blue-blind)
#575F7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6d42be;
/* rgb */ color: rgb(109, 66, 190);
/* oklch */ color: oklch(49.7% 0.185 294.7);
Tailwind
colors: {
  custom: {
    50: '#9d79d2',
    500: '#6d42be',
    950: '#000000',
  },
}
SCSS
$custom: #6d42be;
$custom-light: #9d79d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42be",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 260.806,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49715,
    "c": 0.18464,
    "h": 294.7
  },
  "luminance": 0.10865
}

Semantic roles & 50–950 ramp

primary
#6D42BE
secondary
#B6CA92
accent
#D84FA9
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6D42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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