#6A42B9#6A42B9

#6A42B9 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.0% C 0.178 H 294.3°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#6A42B9
RGBrgb(106, 66, 185)
HSLhsl(260, 47%, 49%)
HSVhsv(260, 64%, 73%)
CMYKcmyk(42.7%, 64.3%, 0%, 27.5%)
CIE-LABlab(38.66, 44.14, -56.94)
CIE-LCHlch(38.66, 72.05, 307.78°)
OKLaboklab(49.03% 0.0735 -0.1626)
OKLCHoklch(49.03% 0.178 294.3)
XYZxyz(16.6467, 10.4630, 47.0320)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42B9 #91B942
analogous
#4256B9 #6A42B9 #A642B9
triadic
#6A42B9 #B96A42 #42B96A
tetradic
#6A42B9 #B94256 #91B942 #42B9A6
square
#6A42B9 #B94256 #91B942 #42B9A6
split-complementary
#6A42B9 #B9A642 #56B942
monochromatic
#36225F #50328C #6A42B9 #8D6DCB #B09ADB

Accessibility & contrast

On white

6.79
#6A42B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#6A42B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42B9
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42B9#FFFFFF#000000##FFFFFF
##6A42B91.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBD
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#555E77
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6a42b9;
/* rgb */ color: rgb(106, 66, 185);
/* oklch */ color: oklch(49.0% 0.178 294.3);
Tailwind
colors: {
  custom: {
    50: '#9b79cf',
    500: '#6a42b9',
    950: '#000000',
  },
}
SCSS
$custom: #6a42b9;
$custom-light: #9b79cf;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42b9",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 185
  },
  "hsl": {
    "h": 260.168,
    "s": 47.41,
    "l": 49.216
  },
  "oklch": {
    "l": 0.49025,
    "c": 0.1784,
    "h": 294.3
  },
  "luminance": 0.10463
}

Semantic roles & 50–950 ramp

primary
#6A42B9
secondary
#B4C790
accent
#D751AA
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0914
muted
#7E7B82

Preview Lab

Preview with #6A42B9

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

Preview Lab → · Contrast checker → · Palette generator →

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