#6A42E0#6A42E0

#6A42E0 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.2% C 0.224 H 287.5°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#6A42E0
RGBrgb(106, 66, 224)
HSLhsl(255, 72%, 57%)
HSVhsv(255, 71%, 88%)
CMYKcmyk(52.7%, 70.5%, 0%, 12.2%)
CIE-LABlab(41.75, 54.97, -74.48)
CIE-LCHlch(41.75, 92.57, 306.43°)
OKLaboklab(52.2% 0.0676 -0.2141)
OKLCHoklch(52.2% 0.224 287.5)
XYZxyz(21.3426, 12.3413, 71.7641)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42E0 #B8E042
analogous
#4269E0 #6A42E0 #B942E0
triadic
#6A42E0 #E06A42 #42E06A
tetradic
#6A42E0 #E04269 #B8E042 #42E0B9
square
#6A42E0 #E04269 #B8E042 #42E0B9
split-complementary
#6A42E0 #E0B942 #69E042
monochromatic
#361890 #4A20C5 #6A42E0 #9377E9 #BDABF1

Accessibility & contrast

On white

6.05
#6A42E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#6A42E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42E0
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42E0#FFFFFF#000000##FFFFFF
##6A42E01.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E5
Deuteranopia (green-blind)
#005EDD
Tritanopia (blue-blind)
#3B6C8D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6a42e0;
/* rgb */ color: rgb(106, 66, 224);
/* oklch */ color: oklch(52.2% 0.224 287.5);
Tailwind
colors: {
  custom: {
    50: '#9f7aeb',
    500: '#6a42e0',
    950: '#000000',
  },
}
SCSS
$custom: #6a42e0;
$custom-light: #9f7aeb;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42e0",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 224
  },
  "hsl": {
    "h": 255.19,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.52204,
    "c": 0.22448,
    "h": 287.5
  },
  "luminance": 0.12342
}

Semantic roles & 50–950 ramp

primary
#6A42E0
secondary
#CFDF9F
accent
#EF39C1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6A42E0

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

Preview Lab → · Contrast checker → · Palette generator →

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