#6A42E6#6A42E6

#6A42E6 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.7% C 0.231 H 286.7°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#6A42E6
RGBrgb(106, 66, 230)
HSLhsl(255, 77%, 58%)
HSVhsv(255, 71%, 90%)
CMYKcmyk(53.9%, 71.3%, 0%, 9.8%)
CIE-LABlab(42.27, 56.64, -77.05)
CIE-LCHlch(42.27, 95.63, 306.32°)
OKLaboklab(52.73% 0.0664 -0.2216)
OKLCHoklch(52.73% 0.231 286.7)
XYZxyz(22.1707, 12.6726, 76.1254)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42E6 #BEE642
analogous
#426CE6 #6A42E6 #BC42E6
triadic
#6A42E6 #E66A42 #42E66A
tetradic
#6A42E6 #E6426C #BEE642 #42E6BC
square
#6A42E6 #E6426C #BEE642 #42E6BC
split-complementary
#6A42E6 #E6BC42 #6CE642
monochromatic
#351499 #471BCF #6A42E6 #9578ED #BFAEF4

Accessibility & contrast

On white

5.94
#6A42E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#6A42E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42E6
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42E6#FFFFFF#000000##FFFFFF
##6A42E61.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EB
Deuteranopia (green-blind)
#005FE3
Tritanopia (blue-blind)
#356E90
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6a42e6;
/* rgb */ color: rgb(106, 66, 230);
/* oklch */ color: oklch(52.7% 0.231 286.7);
Tailwind
colors: {
  custom: {
    50: '#a07aef',
    500: '#6a42e6',
    950: '#000000',
  },
}
SCSS
$custom: #6a42e6;
$custom-light: #a07aef;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42e6",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 230
  },
  "hsl": {
    "h": 254.634,
    "s": 76.636,
    "l": 58.039
  },
  "oklch": {
    "l": 0.52725,
    "c": 0.23134,
    "h": 286.7
  },
  "luminance": 0.12674
}

Semantic roles & 50–950 ramp

primary
#6A42E6
secondary
#D3E3A1
accent
#F335C5
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6A42E6

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

Preview Lab → · Contrast checker → · Palette generator →

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