#6A42E2#6A42E2

#6A42E2 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.4% C 0.227 H 287.2°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#6A42E2
RGBrgb(106, 66, 226)
HSLhsl(255, 73%, 57%)
HSVhsv(255, 71%, 89%)
CMYKcmyk(53.1%, 70.8%, 0%, 11.4%)
CIE-LABlab(41.92, 55.53, -75.34)
CIE-LCHlch(41.92, 93.59, 306.39°)
OKLaboklab(52.38% 0.0672 -0.2166)
OKLCHoklch(52.38% 0.227 287.2)
XYZxyz(21.6155, 12.4505, 73.2010)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42E2 #BAE242
analogous
#426AE2 #6A42E2 #BA42E2
triadic
#6A42E2 #E26A42 #42E26A
tetradic
#6A42E2 #E2426A #BAE242 #42E2BA
square
#6A42E2 #E2426A #BAE242 #42E2BA
split-complementary
#6A42E2 #E2BA42 #6AE242
monochromatic
#361793 #491FC8 #6A42E2 #9477EA #BEACF2

Accessibility & contrast

On white

6.02
#6A42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#6A42E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42E2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42E2#FFFFFF#000000##FFFFFF
##6A42E21.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E7
Deuteranopia (green-blind)
#005EDF
Tritanopia (blue-blind)
#396D8E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6a42e2;
/* rgb */ color: rgb(106, 66, 226);
/* oklch */ color: oklch(52.4% 0.227 287.2);
Tailwind
colors: {
  custom: {
    50: '#a07aec',
    500: '#6a42e2',
    950: '#000000',
  },
}
SCSS
$custom: #6a42e2;
$custom-light: #a07aec;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42e2",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 255,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52377,
    "c": 0.22678,
    "h": 287.2
  },
  "luminance": 0.12452
}

Semantic roles & 50–950 ramp

primary
#6A42E2
secondary
#D0E09F
accent
#F038C2
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6A42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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