#6A42D9#6A42D9

#6A42D9 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.6% C 0.216 H 288.6°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#6A42D9
RGBrgb(106, 66, 217)
HSLhsl(256, 67%, 55%)
HSVhsv(256, 70%, 85%)
CMYKcmyk(51.2%, 69.6%, 0%, 14.9%)
CIE-LABlab(41.17, 53.02, -71.43)
CIE-LCHlch(41.17, 88.96, 306.58°)
OKLaboklab(51.61% 0.0689 -0.2051)
OKLCHoklch(51.61% 0.216 288.6)
XYZxyz(20.4128, 11.9694, 66.8669)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42D9 #B1D942
analogous
#4265D9 #6A42D9 #B542D9
triadic
#6A42D9 #D96A42 #42D96A
tetradic
#6A42D9 #D94265 #B1D942 #42D9B5
square
#6A42D9 #D94265 #B1D942 #42D9B5
split-complementary
#6A42D9 #D9B542 #65D942
monochromatic
#371B86 #4C25B9 #6A42D9 #9275E3 #BAA8ED

Accessibility & contrast

On white

6.19
#6A42D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#6A42D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42D9
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42D9#FFFFFF#000000##FFFFFF
##6A42D91.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DE
Deuteranopia (green-blind)
#005DD6
Tritanopia (blue-blind)
#416989
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6a42d9;
/* rgb */ color: rgb(106, 66, 217);
/* oklch */ color: oklch(51.6% 0.216 288.6);
Tailwind
colors: {
  custom: {
    50: '#9e7ae6',
    500: '#6a42d9',
    950: '#000000',
  },
}
SCSS
$custom: #6a42d9;
$custom-light: #9e7ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42d9",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 255.894,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51606,
    "c": 0.21641,
    "h": 288.6
  },
  "luminance": 0.1197
}

Semantic roles & 50–950 ramp

primary
#6A42D9
secondary
#CADB9C
accent
#E93EBC
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6A42D9

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

Preview Lab → · Contrast checker → · Palette generator →

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