#6A42EB#6A42EB

#6A42EB is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.2% C 0.237 H 286.0°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#6A42EB
RGBrgb(106, 66, 235)
HSLhsl(254, 81%, 59%)
HSVhsv(254, 72%, 92%)
CMYKcmyk(54.9%, 71.9%, 0%, 7.8%)
CIE-LABlab(42.70, 58.03, -79.17)
CIE-LCHlch(42.70, 98.16, 306.24°)
OKLaboklab(53.16% 0.0653 -0.2278)
OKLCHoklch(53.16% 0.237 286)
XYZxyz(22.8830, 12.9575, 79.8764)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42EB #C3EB42
analogous
#426FEB #6A42EB #BE42EB
triadic
#6A42EB #EB6A42 #42EB6A
tetradic
#6A42EB #EB426F #C3EB42 #42EBBE
square
#6A42EB #EB426F #C3EB42 #42EBBE
split-complementary
#6A42EB #EBBE42 #6FEB42
monochromatic
#3311A2 #4517D9 #6A42EB #9679F1 #C1B1F7

Accessibility & contrast

On white

5.85
#6A42EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#6A42EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42EB
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42EB#FFFFFF#000000##FFFFFF
##6A42EB1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069F0
Deuteranopia (green-blind)
#0060E8
Tritanopia (blue-blind)
#2F7093
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6a42eb;
/* rgb */ color: rgb(106, 66, 235);
/* oklch */ color: oklch(53.2% 0.237 286.0);
Tailwind
colors: {
  custom: {
    50: '#a17af3',
    500: '#6a42eb',
    950: '#000000',
  },
}
SCSS
$custom: #6a42eb;
$custom-light: #a17af3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42eb",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 235
  },
  "hsl": {
    "h": 254.201,
    "s": 80.861,
    "l": 59.02
  },
  "oklch": {
    "l": 0.53164,
    "c": 0.237,
    "h": 286
  },
  "luminance": 0.12959
}

Semantic roles & 50–950 ramp

primary
#6A42EB
secondary
#D6E6A3
accent
#F731C8
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6A42EB

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

Preview Lab → · Contrast checker → · Palette generator →

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