#6A42E7#6A42E7

#6A42E7 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.8% C 0.232 H 286.5°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#6A42E7
RGBrgb(106, 66, 231)
HSLhsl(255, 77%, 58%)
HSVhsv(255, 71%, 91%)
CMYKcmyk(54.1%, 71.4%, 0%, 9.4%)
CIE-LABlab(42.35, 56.92, -77.48)
CIE-LCHlch(42.35, 96.14, 306.30°)
OKLaboklab(52.81% 0.0662 -0.2229)
OKLCHoklch(52.81% 0.232 286.5)
XYZxyz(22.3116, 12.7289, 76.8671)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42E7 #BFE742
analogous
#426DE7 #6A42E7 #BC42E7
triadic
#6A42E7 #E76A42 #42E76A
tetradic
#6A42E7 #E7426D #BFE742 #42E7BC
square
#6A42E7 #E7426D #BFE742 #42E7BC
split-complementary
#6A42E7 #E7BC42 #6DE742
monochromatic
#34149B #471BD1 #6A42E7 #9578EE #C0AFF5

Accessibility & contrast

On white

5.92
#6A42E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#6A42E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42E7
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42E7#FFFFFF#000000##FFFFFF
##6A42E71.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EC
Deuteranopia (green-blind)
#005FE4
Tritanopia (blue-blind)
#346E91
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6a42e7;
/* rgb */ color: rgb(106, 66, 231);
/* oklch */ color: oklch(52.8% 0.232 286.5);
Tailwind
colors: {
  custom: {
    50: '#a07af0',
    500: '#6a42e7',
    950: '#000000',
  },
}
SCSS
$custom: #6a42e7;
$custom-light: #a07af0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42e7",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 231
  },
  "hsl": {
    "h": 254.545,
    "s": 77.465,
    "l": 58.235
  },
  "oklch": {
    "l": 0.52812,
    "c": 0.23247,
    "h": 286.5
  },
  "luminance": 0.1273
}

Semantic roles & 50–950 ramp

primary
#6A42E7
secondary
#D3E3A2
accent
#F434C5
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6A42E7

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

Preview Lab → · Contrast checker → · Palette generator →

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