#6B42BF#6B42BF

#6B42BF is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.6% C 0.186 H 293.6°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#6B42BF
RGBrgb(107, 66, 191)
HSLhsl(260, 49%, 50%)
HSVhsv(260, 65%, 75%)
CMYKcmyk(44%, 65.4%, 0%, 25.1%)
CIE-LABlab(39.21, 45.99, -59.56)
CIE-LCHlch(39.21, 75.25, 307.67°)
OKLaboklab(49.59% 0.0743 -0.1702)
OKLCHoklch(49.59% 0.186 293.6)
XYZxyz(17.4130, 10.7833, 50.4440)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B42BF #96BF42
analogous
#4257BF #6B42BF #A942BF
triadic
#6B42BF #BF6B42 #42BF6B
tetradic
#6B42BF #BF4257 #96BF42 #42BFA9
square
#6B42BF #BF4257 #96BF42 #42BFA9
split-complementary
#6B42BF #BFA942 #57BF42
monochromatic
#382265 #513292 #6B42BF #8F70CE #B39DDE

Accessibility & contrast

On white

6.65
#6B42BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#6B42BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B42BF
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B42BF#FFFFFF#000000##FFFFFF
##6B42BF1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#005ABC
Tritanopia (blue-blind)
#53607B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6b42bf;
/* rgb */ color: rgb(107, 66, 191);
/* oklch */ color: oklch(49.6% 0.186 293.6);
Tailwind
colors: {
  custom: {
    50: '#9c79d3',
    500: '#6b42bf',
    950: '#000000',
  },
}
SCSS
$custom: #6b42bf;
$custom-light: #9c79d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6b42bf",
  "rgb": {
    "r": 107,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 259.68,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.49589,
    "c": 0.18572,
    "h": 293.6
  },
  "luminance": 0.10784
}

Semantic roles & 50–950 ramp

primary
#6B42BF
secondary
#B8CA93
accent
#D94FAC
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6B42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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