#6D42BB#6D42BB

#6D42BB is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.5% C 0.181 H 295.3°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#6D42BB
RGBrgb(109, 66, 187)
HSLhsl(261, 48%, 50%)
HSVhsv(261, 65%, 73%)
CMYKcmyk(41.7%, 64.7%, 0%, 26.7%)
CIE-LABlab(39.13, 45.30, -57.34)
CIE-LCHlch(39.13, 73.08, 308.31°)
OKLaboklab(49.49% 0.0775 -0.1636)
OKLCHoklch(49.49% 0.181 295.3)
XYZxyz(17.2222, 10.7351, 48.1688)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42BB #90BB42
analogous
#4254BB #6D42BB #A942BB
triadic
#6D42BB #BB6D42 #42BB6D
tetradic
#6D42BB #BB4254 #90BB42 #42BBA9
square
#6D42BB #BB4254 #90BB42 #42BBA9
split-complementary
#6D42BB #BBA942 #54BB42
monochromatic
#382261 #53328E #6D42BB #906ECC #B29CDC

Accessibility & contrast

On white

6.67
#6D42BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#6D42BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D42BB
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42BB#FFFFFF#000000##FFFFFF
##6D42BB1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#595E78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6d42bb;
/* rgb */ color: rgb(109, 66, 187);
/* oklch */ color: oklch(49.5% 0.181 295.3);
Tailwind
colors: {
  custom: {
    50: '#9d79d0',
    500: '#6d42bb',
    950: '#000000',
  },
}
SCSS
$custom: #6d42bb;
$custom-light: #9d79d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42bb",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 261.322,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.49486,
    "c": 0.18104,
    "h": 295.3
  },
  "luminance": 0.10735
}

Semantic roles & 50–950 ramp

primary
#6D42BB
secondary
#B4C891
accent
#D750A7
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #6D42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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