#6A42AB#6A42AB

#6A42AB is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.0% C 0.161 H 297.5°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#6A42AB
RGBrgb(106, 66, 171)
HSLhsl(263, 44%, 46%)
HSVhsv(263, 61%, 67%)
CMYKcmyk(38%, 61.4%, 0%, 32.9%)
CIE-LABlab(37.66, 40.33, -50.27)
CIE-LCHlch(37.66, 64.45, 308.74°)
OKLaboklab(47.99% 0.0745 -0.1429)
OKLCHoklch(47.99% 0.161 297.5)
XYZxyz(15.2409, 9.9006, 39.6282)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42AB #83AB42
analogous
#424FAB #6A42AB #9F42AB
triadic
#6A42AB #AB6A42 #42AB6A
tetradic
#6A42AB #AB424F #83AB42 #42AB9F
square
#6A42AB #AB424F #83AB42 #42AB9F
split-complementary
#6A42AB #AB9F42 #4FAB42
monochromatic
#332053 #4F317F #6A42AB #8A66C4 #AC92D5

Accessibility & contrast

On white

7.05
#6A42AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#6A42AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A42AB
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42AB#FFFFFF#000000##FFFFFF
##6A42AB1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#1457A9
Tritanopia (blue-blind)
#5B5970
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6a42ab;
/* rgb */ color: rgb(106, 66, 171);
/* oklch */ color: oklch(48.0% 0.161 297.5);
Tailwind
colors: {
  custom: {
    50: '#9978c5',
    500: '#6a42ab',
    950: '#000000',
  },
}
SCSS
$custom: #6a42ab;
$custom-light: #9978c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42ab",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 262.857,
    "s": 44.304,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47985,
    "c": 0.16121,
    "h": 297.5
  },
  "luminance": 0.09901
}

Semantic roles & 50–950 ramp

primary
#6A42AB
secondary
#ABC088
accent
#D454A3
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6A42AB

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

Preview Lab → · Contrast checker → · Palette generator →

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