#6A42DC#6A42DC

#6A42DC is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.9% C 0.220 H 288.1°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#6A42DC
RGBrgb(106, 66, 220)
HSLhsl(256, 69%, 56%)
HSVhsv(256, 70%, 86%)
CMYKcmyk(51.8%, 70%, 0%, 13.7%)
CIE-LABlab(41.42, 53.85, -72.74)
CIE-LCHlch(41.42, 90.51, 306.51°)
OKLaboklab(51.86% 0.0683 -0.209)
OKLCHoklch(51.86% 0.22 288.1)
XYZxyz(20.8066, 12.1269, 68.9407)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42DC #B4DC42
analogous
#4267DC #6A42DC #B742DC
triadic
#6A42DC #DC6A42 #42DC6A
tetradic
#6A42DC #DC4267 #B4DC42 #42DCB7
square
#6A42DC #DC4267 #B4DC42 #42DCB7
split-complementary
#6A42DC #DCB742 #67DC42
monochromatic
#371A8A #4B23BE #6A42DC #9376E6 #BBA9EF

Accessibility & contrast

On white

6.13
#6A42DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#6A42DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42DC
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42DC#FFFFFF#000000##FFFFFF
##6A42DC1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E1
Deuteranopia (green-blind)
#005ED9
Tritanopia (blue-blind)
#3E6A8A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6a42dc;
/* rgb */ color: rgb(106, 66, 220);
/* oklch */ color: oklch(51.9% 0.220 288.1);
Tailwind
colors: {
  custom: {
    50: '#9f7ae8',
    500: '#6a42dc',
    950: '#000000',
  },
}
SCSS
$custom: #6a42dc;
$custom-light: #9f7ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42dc",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 255.584,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51861,
    "c": 0.21988,
    "h": 288.1
  },
  "luminance": 0.12128
}

Semantic roles & 50–950 ramp

primary
#6A42DC
secondary
#CCDD9D
accent
#EC3CBE
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6A42DC

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

Preview Lab → · Contrast checker → · Palette generator →

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