#6A42D6#6A42D6

#6A42D6 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.213 H 289.0°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#6A42D6
RGBrgb(106, 66, 214)
HSLhsl(256, 64%, 55%)
HSVhsv(256, 69%, 84%)
CMYKcmyk(50.5%, 69.2%, 0%, 16.1%)
CIE-LABlab(40.92, 52.18, -70.12)
CIE-LCHlch(40.92, 87.40, 306.66°)
OKLaboklab(51.35% 0.0695 -0.2013)
OKLCHoklch(51.35% 0.213 289)
XYZxyz(20.0262, 11.8147, 64.8306)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42D6 #AED642
analogous
#4264D6 #6A42D6 #B442D6
triadic
#6A42D6 #D66A42 #42D66A
tetradic
#6A42D6 #D64264 #AED642 #42D6B4
square
#6A42D6 #D64264 #AED642 #42D6B4
split-complementary
#6A42D6 #D6B442 #64D642
monochromatic
#381C82 #4D27B4 #6A42D6 #9274E1 #B9A7EC

Accessibility & contrast

On white

6.24
#6A42D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6A42D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42D6
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42D6#FFFFFF#000000##FFFFFF
##6A42D61.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DA
Deuteranopia (green-blind)
#005DD3
Tritanopia (blue-blind)
#436887
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6a42d6;
/* rgb */ color: rgb(106, 66, 214);
/* oklch */ color: oklch(51.4% 0.213 289.0);
Tailwind
colors: {
  custom: {
    50: '#9e79e4',
    500: '#6a42d6',
    950: '#000000',
  },
}
SCSS
$custom: #6a42d6;
$custom-light: #9e79e4;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42d6",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 256.216,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51354,
    "c": 0.21292,
    "h": 289
  },
  "luminance": 0.11816
}

Semantic roles & 50–950 ramp

primary
#6A42D6
secondary
#C8D99B
accent
#E740BA
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6A42D6

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

Preview Lab → · Contrast checker → · Palette generator →

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