#6D42E0#6D42E0

#6D42E0 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.5% C 0.224 H 288.7°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#6D42E0
RGBrgb(109, 66, 224)
HSLhsl(256, 72%, 57%)
HSVhsv(256, 71%, 88%)
CMYKcmyk(51.3%, 70.5%, 0%, 12.2%)
CIE-LABlab(42.04, 55.43, -73.99)
CIE-LCHlch(42.04, 92.45, 306.84°)
OKLaboklab(52.48% 0.0718 -0.2125)
OKLCHoklch(52.48% 0.224 288.7)
XYZxyz(21.7055, 12.5284, 71.7811)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42E0 #B5E042
analogous
#4266E0 #6D42E0 #BC42E0
triadic
#6D42E0 #E06D42 #42E06D
tetradic
#6D42E0 #E04266 #B5E042 #42E0BC
square
#6D42E0 #E04266 #B5E042 #42E0BC
split-complementary
#6D42E0 #E0BC42 #66E042
monochromatic
#381890 #4D20C5 #6D42E0 #9677E9 #BEABF1

Accessibility & contrast

On white

5.99
#6D42E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#6D42E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D42E0
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42E0#FFFFFF#000000##FFFFFF
##6D42E01.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E5
Deuteranopia (green-blind)
#005FDD
Tritanopia (blue-blind)
#426C8D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6d42e0;
/* rgb */ color: rgb(109, 66, 224);
/* oklch */ color: oklch(52.5% 0.224 288.7);
Tailwind
colors: {
  custom: {
    50: '#a17aeb',
    500: '#6d42e0',
    950: '#000000',
  },
}
SCSS
$custom: #6d42e0;
$custom-light: #a17aeb;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42e0",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 224
  },
  "hsl": {
    "h": 256.329,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.52479,
    "c": 0.22434,
    "h": 288.7
  },
  "luminance": 0.12529
}

Semantic roles & 50–950 ramp

primary
#6D42E0
secondary
#CEDF9F
accent
#EF39BD
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6D42E0

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

Preview Lab → · Contrast checker → · Palette generator →

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