#6A42E1#6A42E1

#6A42E1 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.3% C 0.226 H 287.4°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#6A42E1
RGBrgb(106, 66, 225)
HSLhsl(255, 73%, 57%)
HSVhsv(255, 71%, 88%)
CMYKcmyk(52.9%, 70.7%, 0%, 11.8%)
CIE-LABlab(41.84, 55.25, -74.91)
CIE-LCHlch(41.84, 93.08, 306.41°)
OKLaboklab(52.29% 0.0674 -0.2153)
OKLCHoklch(52.29% 0.226 287.4)
XYZxyz(21.4787, 12.3958, 72.4804)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42E1 #B9E142
analogous
#426AE1 #6A42E1 #B942E1
triadic
#6A42E1 #E16A42 #42E16A
tetradic
#6A42E1 #E1426A #B9E142 #42E1B9
square
#6A42E1 #E1426A #B9E142 #42E1B9
split-complementary
#6A42E1 #E1B942 #6AE142
monochromatic
#361792 #491FC6 #6A42E1 #9477E9 #BDACF2

Accessibility & contrast

On white

6.04
#6A42E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#6A42E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42E1
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42E1#FFFFFF#000000##FFFFFF
##6A42E11.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E6
Deuteranopia (green-blind)
#005EDE
Tritanopia (blue-blind)
#3A6C8D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6a42e1;
/* rgb */ color: rgb(106, 66, 225);
/* oklch */ color: oklch(52.3% 0.226 287.4);
Tailwind
colors: {
  custom: {
    50: '#a07aec',
    500: '#6a42e1',
    950: '#000000',
  },
}
SCSS
$custom: #6a42e1;
$custom-light: #a07aec;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42e1",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 255.094,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5229,
    "c": 0.22563,
    "h": 287.4
  },
  "luminance": 0.12397
}

Semantic roles & 50–950 ramp

primary
#6A42E1
secondary
#CFE09F
accent
#EF38C1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6A42E1

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

Preview Lab → · Contrast checker → · Palette generator →

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