#6B42BC#6B42BC

#6B42BC is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.4% C 0.182 H 294.2°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#6B42BC
RGBrgb(107, 66, 188)
HSLhsl(260, 48%, 50%)
HSVhsv(260, 65%, 74%)
CMYKcmyk(43.1%, 64.9%, 0%, 26.3%)
CIE-LABlab(38.99, 45.17, -58.17)
CIE-LCHlch(38.99, 73.64, 307.83°)
OKLaboklab(49.36% 0.0746 -0.1661)
OKLCHoklch(49.36% 0.182 294.2)
XYZxyz(17.0863, 10.6526, 48.7231)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B42BC #93BC42
analogous
#4256BC #6B42BC #A842BC
triadic
#6B42BC #BC6B42 #42BC6B
tetradic
#6B42BC #BC4256 #93BC42 #42BCA8
square
#6B42BC #BC4256 #93BC42 #42BCA8
split-complementary
#6B42BC #BCA842 #56BC42
monochromatic
#372261 #51328F #6B42BC #8E6FCC #B29CDC

Accessibility & contrast

On white

6.71
#6B42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#6B42BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B42BC
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B42BC#FFFFFF#000000##FFFFFF
##6B42BC1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#555F79
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6b42bc;
/* rgb */ color: rgb(107, 66, 188);
/* oklch */ color: oklch(49.4% 0.182 294.2);
Tailwind
colors: {
  custom: {
    50: '#9b79d1',
    500: '#6b42bc',
    950: '#000000',
  },
}
SCSS
$custom: #6b42bc;
$custom-light: #9b79d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b42bc",
  "rgb": {
    "r": 107,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 260.164,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.49357,
    "c": 0.1821,
    "h": 294.2
  },
  "luminance": 0.10653
}

Semantic roles & 50–950 ramp

primary
#6B42BC
secondary
#B6C991
accent
#D850AA
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #6B42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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