#6A42EA#6A42EA

#6A42EA is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.1% C 0.236 H 286.1°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#6A42EA
RGBrgb(106, 66, 234)
HSLhsl(254, 80%, 59%)
HSVhsv(254, 72%, 92%)
CMYKcmyk(54.7%, 71.8%, 0%, 8.2%)
CIE-LABlab(42.61, 57.76, -78.75)
CIE-LCHlch(42.61, 97.66, 306.26°)
OKLaboklab(53.08% 0.0655 -0.2266)
OKLCHoklch(53.08% 0.236 286.1)
XYZxyz(22.7389, 12.8998, 79.1177)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42EA #C2EA42
analogous
#426EEA #6A42EA #BE42EA
triadic
#6A42EA #EA6A42 #42EA6A
tetradic
#6A42EA #EA426E #C2EA42 #42EABE
square
#6A42EA #EA426E #C2EA42 #42EABE
split-complementary
#6A42EA #EABE42 #6EEA42
monochromatic
#3412A0 #4518D7 #6A42EA #9579F0 #C1B0F6

Accessibility & contrast

On white

5.87
#6A42EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#6A42EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42EA
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42EA#FFFFFF#000000##FFFFFF
##6A42EA1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069EF
Deuteranopia (green-blind)
#0060E7
Tritanopia (blue-blind)
#307092
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6a42ea;
/* rgb */ color: rgb(106, 66, 234);
/* oklch */ color: oklch(53.1% 0.236 286.1);
Tailwind
colors: {
  custom: {
    50: '#a17af2',
    500: '#6a42ea',
    950: '#000000',
  },
}
SCSS
$custom: #6a42ea;
$custom-light: #a17af2;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42ea",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 254.286,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.53076,
    "c": 0.23587,
    "h": 286.1
  },
  "luminance": 0.12901
}

Semantic roles & 50–950 ramp

primary
#6A42EA
secondary
#D5E5A3
accent
#F631C8
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6A42EA

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

Preview Lab → · Contrast checker → · Palette generator →

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